todo list

This commit is contained in:
artus
2018-11-19 15:04:53 +01:00
parent f522f394f3
commit 510b15a210
2 changed files with 8 additions and 0 deletions

View File

@@ -15,7 +15,12 @@ def main(opts):
for ext in CONFIG.sections() for ext in CONFIG.sections()
} }
if opts.update_card or opts.wipe_card:
# TODO: gracefully fail if camera is not writable.
pass
if opts.grab: # Grab new files from camera if opts.grab: # Grab new files from camera
# TODO: gracefully fail if camera is not readable.
camera_files = camera.read_content() camera_files = camera.read_content()
for ext, backup in backups.items(): for ext, backup in backups.items():
bkp_files = backup.read_content(exclude_trash=False) bkp_files = backup.read_content(exclude_trash=False)

View File

@@ -53,6 +53,7 @@ class Store:
return content return content
def copy_content(self, content): def copy_content(self, content):
# TODO: Warn on missing file to copy
print(f"Copy files to {self.path} : ", end="") print(f"Copy files to {self.path} : ", end="")
count = len(content) count = len(content)
start_time = time.process_time() start_time = time.process_time()
@@ -62,6 +63,7 @@ class Store:
print(f"{count} in {elapsed:.2f}s.") print(f"{count} in {elapsed:.2f}s.")
def move_content(self, content): def move_content(self, content):
# TODO: Warn on missing file to move
print(f"Move files to {self.path} : ", end="") print(f"Move files to {self.path} : ", end="")
count = len(content) count = len(content)
start_time = time.process_time() start_time = time.process_time()
@@ -71,6 +73,7 @@ class Store:
print(f"{count} in {elapsed:.2f}s.") print(f"{count} in {elapsed:.2f}s.")
def remove_content(self, content): def remove_content(self, content):
# TODO: Silently ignore missing files
print(f"Removing files from {self.path} : ", end="") print(f"Removing files from {self.path} : ", end="")
count = len(content) count = len(content)
start_time = time.process_time() start_time = time.process_time()