This commit is contained in:
Jesse Duffield 2021-12-30 17:19:01 +11:00
parent 96c2887fd0
commit 9b2b0fc122
22 changed files with 453 additions and 471 deletions

View file

@ -137,7 +137,7 @@ func (c *OSCommand) SetRemoveFile(f func(string) error) {
}
// FileType tells us if the file is a file, directory or other
func (c *OSCommand) FileType(path string) string {
func FileType(path string) string {
fileInfo, err := os.Stat(path)
if err != nil {
return "other"