mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-20 21:43:09 +00:00
Explicitly pass overwrite=True to add_file. (It is the default, but this is clearer.)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
parent
c27eafcb5c
commit
b19eb94c7e
@ -205,13 +205,13 @@ class DropUploader(service.MultiService):
|
||||
|
||||
def _add_file(name):
|
||||
u = FileName(path, self._convergence)
|
||||
return self._parent.add_file(name, u)
|
||||
return self._parent.add_file(name, u, overwrite=True)
|
||||
|
||||
def _add_dir(name):
|
||||
self._notifier.watch(to_filepath(path), mask=self.mask, callbacks=[self._notify], recursive=True)
|
||||
u = Data("", self._convergence)
|
||||
name += "@_"
|
||||
d2 = self._parent.add_file(name, u)
|
||||
d2 = self._parent.add_file(name, u, overwrite=True)
|
||||
def _succeeded(ign):
|
||||
self._log("created subdirectory %r" % (path,))
|
||||
self._stats_provider.count('drop_upload.directories_created', 1)
|
||||
|
Loading…
Reference in New Issue
Block a user