diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2008-12-02 13:41:50 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2008-12-02 13:41:50 (GMT) |
commit | a61a9691a8e98019b25fc9579fec9f1f980e451b (patch) | |
tree | d4aead5b0d218f7801755e9af127ce8164bd7901 | |
parent | d47538083130a89caa3463f5b6e779070b28de61 (diff) |
Remove support for deleting the file of an entry, the current API doesnt allow it
-rw-r--r-- | src/olpc/datastore/filestore.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/olpc/datastore/filestore.py b/src/olpc/datastore/filestore.py index 894c183..471f713 100644 --- a/src/olpc/datastore/filestore.py +++ b/src/olpc/datastore/filestore.py @@ -55,9 +55,13 @@ class FileStore(object): raise else: self._async_copy(file_path, destination_path, completion_cb) + """ + TODO: How can we support deleting the file of an entry? elif not file_path and os.path.exists(destination_path): + logging.debug('FileStore: deleting %r' % destination_path) os.remove(destination_path) completion_cb() + """ else: logging.debug('FileStore: Nothing to do') completion_cb() |