add count suffix
authorFelix Domke <tmbinc@elitedvb.net>
Tue, 15 Nov 2005 05:08:31 +0000 (05:08 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Tue, 15 Nov 2005 05:08:31 +0000 (05:08 +0000)
lib/python/Tools/Directories.py

index 982db6f..9cd2951 100644 (file)
@@ -42,7 +42,6 @@ def getRecordingFilename(basename):
                path = "/hdd/movies/" + filename
                if i > 0:
                        path += str(i)
                path = "/hdd/movies/" + filename
                if i > 0:
                        path += str(i)
-#              if os.glob(path + "*").size() == 0:
-#                      return path
-               return path
+               if os.glob(path + "*").size() == 0:
+                       return path
                i+=1
                i+=1