MCPcopy Index your code
hub / github.com/MertJSX/folderhost / IsNotExistingPath

Function IsNotExistingPath

utils/path_queries.go:5–9  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

3import "os"
4
5func IsNotExistingPath(path string) bool {
6 _, err := os.Stat(path)
7
8 return os.IsNotExist(err)
9}
10
11func IsExistingPath(path string) bool {
12 return !IsNotExistingPath(path)

Callers 8

InitializeDatabaseFunction · 0.92
ReadFileFunction · 0.92
RenameFunction · 0.92
RemoveRecoveryRecordFunction · 0.92
RawFileFunction · 0.92
RecoverItemFunction · 0.92
SetupFunction · 0.85
IsExistingPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected