Files
photograb/sync.py
2018-11-15 22:15:58 +01:00

24 lines
380 B
Python

# -*- 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)