Fix not fail
This commit is contained in:
parent
3d7682c611
commit
be1fe6495c
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ proc findPath(path: string, fail = true): string =
|
||||||
# Relative to project path
|
# Relative to project path
|
||||||
result = joinPathIfRel(getProjectPath(), path).replace("\\", "/")
|
result = joinPathIfRel(getProjectPath(), path).replace("\\", "/")
|
||||||
if not fileExists(result) and not dirExists(result):
|
if not fileExists(result) and not dirExists(result):
|
||||||
doAssert not fail, "File or directory not found: " & path
|
doAssert (not fail), "File or directory not found: " & path
|
||||||
result = ""
|
result = ""
|
||||||
|
|
||||||
proc walkDirImpl(indir, inext: string, file=true): seq[string] =
|
proc walkDirImpl(indir, inext: string, file=true): seq[string] =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue