Rename backups => snapshot
This commit is contained in:
parent
611cbeebb9
commit
d818cb93a5
8 changed files with 178 additions and 166 deletions
|
|
@ -2,6 +2,11 @@ package fsx
|
|||
|
||||
import "os"
|
||||
|
||||
func Exists(path string) bool {
|
||||
_, err := os.Stat(path)
|
||||
return err == nil
|
||||
}
|
||||
|
||||
func IsDirectory(path string) bool {
|
||||
info, err := os.Stat(path)
|
||||
return err == nil && info.Mode().IsDir()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue