mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-23 18:50:24 +00:00
simplify _db_file_is_uploaded
This commit is contained in:
parent
0118c5105b
commit
3ea5031261
@ -233,11 +233,7 @@ class MagicFolder(service.MultiService):
|
||||
"""
|
||||
assert self._db != None
|
||||
r = self._db.check_file(childpath)
|
||||
filecap = r.was_uploaded()
|
||||
if filecap is False:
|
||||
return False
|
||||
else:
|
||||
return True
|
||||
return r.was_uploaded()
|
||||
|
||||
def _scan(self, localpath):
|
||||
if not os.path.isdir(localpath):
|
||||
|
Loading…
x
Reference in New Issue
Block a user