...and *i* need to be more careful about writing python after waking up

This commit is contained in:
brent s 2017-09-09 12:27:26 -04:00
parent 5ad4f0bda8
commit 5ace114ef8
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ def destPrep():
if len(os.listdir(thisdir)) == 0:
os.rmdir(thisdir)
for d in dirs:
if len(os.listdir(os.join(thisdir, d))) == 0:
if len(os.listdir(os.path.join(thisdir, d))) == 0:
os.rmdir(os.join(thisdir, d))
#try:
# os.removedirs(sks['destdir']) # Remove empty dirs