At risk of sounding redundant, while 64107f9 keeps nim from raising OSErrors it ignores the root problem.
Which is that calling parentDir() on root returns a empty string. NOT "/". Therefore if parent != currentDir: returns true.
A fix would be:
if parent != currentDir and parent != "":
or even better:
if not isRootDir(currentDir):
else:
let parent = parentDir(currentDir) # returns empty string
if parent != currentDir: # returns true
currentDir = parent
scanDir(currentDir)
applyFilter()
Hope this didn't come off harsh. I like project and wish it well.
At risk of sounding redundant, while 64107f9 keeps nim from raising OSErrors it ignores the root problem.
Which is that calling parentDir() on root returns a empty string. NOT "/". Therefore
if parent != currentDir:returns true.A fix would be:
if parent != currentDir and parent != "":or even better:
if not isRootDir(currentDir):Hope this didn't come off harsh. I like project and wish it well.