sort list-files before downloading... user can control what files to download first
authorNabil Hanna <ali@users.schwerkraft.elitedvb.net>
Sat, 29 Aug 2009 11:01:35 +0000 (11:01 +0000)
committerNabil Hanna <ali@users.schwerkraft.elitedvb.net>
Sat, 29 Aug 2009 11:01:35 +0000 (11:01 +0000)
rsdownloader/src/plugin.py

index 8b344ea..aff20aa 100644 (file)
@@ -487,7 +487,8 @@ class RS:
                        path = path + "/"\r
                writeLog("Directory: " + path)\r
                try:\r
-                       file_list = listdir(path)\r
+                       file_list = listdir(path)
+                       file_list.sort()\r
                        writeLog("Count of lists: " + str(len(file_list)))\r
                except:\r
                        file_list = []\r