12 lines
143 B
Go
12 lines
143 B
Go
package fs
|
|
|
|
import (
|
|
"errors"
|
|
"os"
|
|
)
|
|
|
|
func PathExists(path string) bool {
|
|
_, err := os.Stat(path)
|
|
return !errors.Is(err, os.ErrNotExist)
|
|
}
|