MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / getLastModified

Function getLastModified

server/handles/fsup.go:22–31  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

20)
21
22func getLastModified(c *gin.Context) time.Time {
23 now := time.Now()
24 lastModifiedStr := c.GetHeader("Last-Modified")
25 lastModifiedMillisecond, err := strconv.ParseInt(lastModifiedStr, 10, 64)
26 if err != nil {
27 return now
28 }
29 lastModified := time.UnixMilli(lastModifiedMillisecond)
30 return lastModified
31}
32
33// shouldIgnoreSystemFile checks if the filename should be ignored based on settings
34func shouldIgnoreSystemFile(filename string) bool {

Callers 2

FsStreamFunction · 0.85
FsFormFunction · 0.85

Calls 1

NowMethod · 0.65

Tested by

no test coverage detected