Skip to content

Commit

Permalink
Return bool value correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
beavailable committed Mar 4, 2022
1 parent 9a52534 commit 4d16607
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions share.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,7 @@ def is_file(self, path):
for f in self.files:
if path == os.path.basename(f):
return True
if path == 'file' and len(self.files) == 1:
return True
return path == 'file' and len(self.files) == 1

def get_file(self, path):
if self.dir:
Expand Down

0 comments on commit 4d16607

Please sign in to comment.