mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-23 23:02:25 +00:00
tahoe_cp: be consistent with "source.basename() is None" testing
This commit is contained in:
parent
190743e066
commit
48da2cd99b
@ -559,7 +559,7 @@ class Copier:
|
||||
_assert(isinstance(target, DirectoryTargets + MissingTargets), target)
|
||||
|
||||
for source in sources:
|
||||
if isinstance(source, FileSources) and not source.basename():
|
||||
if isinstance(source, FileSources) and source.basename() is None:
|
||||
self.to_stderr("when copying into a directory, all source files must have names, but %s is unnamed" % quote_output(source_specs[0]))
|
||||
return 1
|
||||
return self.copy_things_to_directory(sources, target)
|
||||
|
Loading…
Reference in New Issue
Block a user