Ver Fonte

drop 'rclone --output-file' + better sort subdirs in html generator

Noah Vogt há 3 anos atrás
pai
commit
691428e59f
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      surf

+ 2 - 2
surf

@@ -194,7 +194,7 @@ class Surf:
     def save_new_checkfile(self):
         self.log("saving new checkfile...")
         os.system(
-            "rclone md5sum {} --output-file {}".format(
+            "rclone md5sum {} > {}".format(
                 self.rclone_remote_dir, CHECKFILE
             )
         )
@@ -280,7 +280,7 @@ class Surf:
                         html += self.handle_last_stage_html(file_path)
                     elif depth == 1:
                         html += self.create_heading_html(filename)
-                        for subdir_path in get_subdirs(file_path):
+                        for subdir_path in sorted(get_subdirs(file_path)):
                             html += self.handle_last_stage_html(subdir_path)
                         if self.contains_files(file_path):
                             self.error_msg(