mirror of https://github.com/akuker/RASCSI.git
Don't invert boolean check
This commit is contained in:
parent
9ebb77fe1d
commit
4fae41c746
|
@ -64,7 +64,7 @@ class FileCmds:
|
|||
excluded_dirs = ("Network Trash Folder", "Temporary Items", "TheVolumeSettingsFolder")
|
||||
for root, dirs, _files in walk(directory, topdown=True):
|
||||
# Strip out dirs that begin with .
|
||||
dirs[:] = [d for d in dirs if not d[0] == "."]
|
||||
dirs[:] = [d for d in dirs if d[0] != "."]
|
||||
for dir in dirs:
|
||||
if dir not in excluded_dirs:
|
||||
dirpath = path.join(root, dir)
|
||||
|
|
Loading…
Reference in New Issue