MCPcopy Index your code
hub / github.com/devspace-sh/devspace / parseFileInformation

Function parseFileInformation

pkg/devspace/sync/file_information.go:42–51  ·  view source on GitHub ↗
(change *remote.Change)

Source from the content-addressed store, hash-verified

40}
41
42func parseFileInformation(change *remote.Change) *FileInformation {
43 return &FileInformation{
44 Name: change.Path,
45 Size: change.Size,
46 Mtime: change.MtimeUnix,
47 MtimeNano: change.MtimeUnixNano,
48 Mode: os.FileMode(change.Mode),
49 IsDirectory: change.IsDir,
50 }
51}

Callers 3

populateFileMapMethod · 0.85
shouldKeepMethod · 0.85
removeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected