Documentation
¶
Overview ¶
Package files
Package files
Index ¶
- Constants
- func BaseNameWithoutExtension(fileName string) string
- func ChecksumFromFile(filePath string) (string, error)
- func Copy(srcPath string, dstPath string) (err error)
- func DirExists(filePath string) (err error)
- func FileExists(filePath string) (err error)
- func FilePathExists(filePath string) (err error)
- func MatchFullDirectoryRelative(directory string) (files []string, err error)
- func MatchPatternRelative(directory string, pattern string) (files []string, err error)
- func MatchPatterns(directory string, patterns ...string) (files []string, err error)
- func SortFilesByPath(files []string)
Constants ¶
View Source
const ( UserReadWritePerm os.FileMode = 0o600 UserReadWriteExecutePerm os.FileMode = 0o700 )
Variables ¶
This section is empty.
Functions ¶
func ChecksumFromFile ¶ added in v0.3.7
func Copy ¶
Copy copies the contents of the file at srcPath to a regular file at dstPath. If the file named by dstPath already exists, it is truncated. The function does not copy the file mode, file permission bits, or file attributes. @todo replace with os.CopyFS when released @see https://github.com/golang/go/issues/62484
func FileExists ¶
func FilePathExists ¶
func MatchPatternRelative ¶
func MatchPatterns ¶
func SortFilesByPath ¶
func SortFilesByPath(files []string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.