first commit

This commit is contained in:
artus
2018-11-15 22:15:58 +01:00
commit 51294ccec4
6 changed files with 113 additions and 0 deletions

23
sync.py Normal file
View File

@@ -0,0 +1,23 @@
# -*- coding:utf-8 -*-
"""
Synchronize files from gallery.
Mark deleted files from gallery, to be deleted at later time.
"""
from .trash import move_to_trash
def find_deleted():
pass
def delete_from_card(files):
pass
def sync(update_card=False):
deleted = find_deleted()
move_to_trash(deleted)
if update_card:
delete_from_card(deleted)