mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-26 06:09:21 +00:00
Distinguish deletion of directories.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
parent
f2db5068b9
commit
a7ef6948d9
@ -705,9 +705,12 @@ class Downloader(QueueMixin, WriteFileMixin):
|
||||
#local_last_uploaded_uri = ...
|
||||
|
||||
if relpath_u.endswith(u"/"):
|
||||
self._log("mkdir(%r)" % (abspath_u,))
|
||||
d.addCallback(lambda ign: fileutil.make_dirs(abspath_u))
|
||||
d.addCallback(lambda ign: abspath_u)
|
||||
if metadata.get('deleted', False):
|
||||
self._log("rmdir(%r) ignored" % (abspath_u,))
|
||||
else:
|
||||
self._log("mkdir(%r)" % (abspath_u,))
|
||||
d.addCallback(lambda ign: fileutil.make_dirs(abspath_u))
|
||||
d.addCallback(lambda ign: abspath_u)
|
||||
else:
|
||||
d.addCallback(lambda ign: file_node.download_best_version())
|
||||
if metadata.get('deleted', False):
|
||||
|
Loading…
x
Reference in New Issue
Block a user