todo list
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user