convert all listdir functions to unicode. Fixes #1189

This commit is contained in:
clinton-hall 2017-02-10 22:12:51 +10:30
parent 868c8c36bf
commit a7fcb7be9e
2 changed files with 12 additions and 12 deletions

View file

@ -814,7 +814,7 @@ def Transcode_directory(dirName):
os.unlink(file)
except:
pass
if not os.listdir(newDir): # this is an empty directory and we didn't transcode into it.
if not os.listdir(unicode(newDir)): # this is an empty directory and we didn't transcode into it.
os.rmdir(newDir)
newDir = dirName
if not core.PROCESSOUTPUT and core.DUPLICATE: # We postprocess the original files to CP/SB