1
0
mirror of https://github.com/Syncplay/syncplay synced 2024-12-18 21:14:31 +00:00

Revert deletion of randomFilename

This commit is contained in:
Et0h 2016-07-03 17:58:37 +01:00
parent 586c12ec68
commit 60e357ce75

View File

@ -1703,6 +1703,7 @@ class FileSwitchManager(object):
if highPriority and self.folderSearchEnabled:
directoryList = self.mediaDirectories
# Spin up hard drives to prevent premature timeout
randomFilename = u"RandomFile"+unicode(random.randrange(10000, 99999))+u".txt"
for directory in directoryList:
startTime = time.time()
if os.path.isfile(os.path.join(directory, randomFilename)):