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

Function createFileInformationFromStat

helper/server/tar.go:286–294  ·  view source on GitHub ↗
(relativePath string, stat os.FileInfo)

Source from the content-addressed store, hash-verified

284}
285
286func createFileInformationFromStat(relativePath string, stat os.FileInfo) *fileInformation {
287 fileInformation := &fileInformation{
288 Name: relativePath,
289 Size: stat.Size(),
290 Mtime: stat.ModTime(),
291 }
292
293 return fileInformation
294}

Callers 1

recursiveTarFunction · 0.70

Calls 2

SizeMethod · 0.45
ModTimeMethod · 0.45

Tested by

no test coverage detected