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

Function createFileInformationFromStat

pkg/devspace/sync/tar.go:395–404  ·  view source on GitHub ↗
(relativePath string, stat os.FileInfo)

Source from the content-addressed store, hash-verified

393}
394
395func createFileInformationFromStat(relativePath string, stat os.FileInfo) *FileInformation {
396 return &FileInformation{
397 Name: relativePath,
398 Size: stat.Size(),
399 Mtime: stat.ModTime().Unix(),
400 MtimeNano: stat.ModTime().UnixNano(),
401 Mode: stat.Mode(),
402 IsDirectory: stat.IsDir(),
403 }
404}

Callers 1

AddToArchiveMethod · 0.70

Calls 4

SizeMethod · 0.45
ModTimeMethod · 0.45
ModeMethod · 0.45
IsDirMethod · 0.45

Tested by

no test coverage detected