mirror of
https://github.com/akuker/RASCSI.git
synced 2024-06-02 11:41:34 +00:00
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")
|
excluded_dirs = ("Network Trash Folder", "Temporary Items", "TheVolumeSettingsFolder")
|
||||||
for root, dirs, _files in walk(directory, topdown=True):
|
for root, dirs, _files in walk(directory, topdown=True):
|
||||||
# Strip out dirs that begin with .
|
# 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:
|
for dir in dirs:
|
||||||
if dir not in excluded_dirs:
|
if dir not in excluded_dirs:
|
||||||
dirpath = path.join(root, dir)
|
dirpath = path.join(root, dir)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user