diff --git a/share.py b/share.py index a9b87f7..728a4f8 100755 --- a/share.py +++ b/share.py @@ -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: