diff --git a/photograb/main.py b/photograb/main.py index b02d78b..dd9a273 100644 --- a/photograb/main.py +++ b/photograb/main.py @@ -15,7 +15,12 @@ def main(opts): 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 + # TODO: gracefully fail if camera is not readable. camera_files = camera.read_content() for ext, backup in backups.items(): bkp_files = backup.read_content(exclude_trash=False) diff --git a/photograb/store.py b/photograb/store.py index 6aa73e1..11dc9f2 100644 --- a/photograb/store.py +++ b/photograb/store.py @@ -53,6 +53,7 @@ class Store: return content def copy_content(self, content): + # TODO: Warn on missing file to copy print(f"Copy files to {self.path} : ", end="") count = len(content) start_time = time.process_time() @@ -62,6 +63,7 @@ class Store: print(f"{count} in {elapsed:.2f}s.") def move_content(self, content): + # TODO: Warn on missing file to move print(f"Move files to {self.path} : ", end="") count = len(content) start_time = time.process_time() @@ -71,6 +73,7 @@ class Store: print(f"{count} in {elapsed:.2f}s.") def remove_content(self, content): + # TODO: Silently ignore missing files print(f"Removing files from {self.path} : ", end="") count = len(content) start_time = time.process_time()