wip
This commit is contained in:
11
fs/file.go
Normal file
11
fs/file.go
Normal file
@ -0,0 +1,11 @@
|
||||
package fs
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"os"
|
||||
)
|
||||
|
||||
func PathExists(path string) bool {
|
||||
_, err := os.Stat(path)
|
||||
return !errors.Is(err, os.ErrNotExist)
|
||||
}
|
Reference in New Issue
Block a user