mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-24 02:51:18 +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
|
assert self._db != None
|
||||||
r = self._db.check_file(childpath)
|
r = self._db.check_file(childpath)
|
||||||
filecap = r.was_uploaded()
|
return r.was_uploaded()
|
||||||
if filecap is False:
|
|
||||||
return False
|
|
||||||
else:
|
|
||||||
return True
|
|
||||||
|
|
||||||
def _scan(self, localpath):
|
def _scan(self, localpath):
|
||||||
if not os.path.isdir(localpath):
|
if not os.path.isdir(localpath):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user