diff --git a/README.md b/README.md index 4e490f1..f178f35 100644 --- a/README.md +++ b/README.md @@ -33,8 +33,8 @@ qrshare --help ```bash Usage: __main__.py [OPTIONS] PATHS... -Options: - -p, --passcode TEXT when provided every device require authentication +Options:**** + -p, --password TEXT when provided every device require authentication --port INTEGER waitress server port --help Show this message and exit. ``` diff --git a/example.py b/example.py index a31e998..487766c 100644 --- a/example.py +++ b/example.py @@ -4,7 +4,7 @@ paths = [ Path(r'C:\Users\User\Documents\Projects\Web\share\index.html'), - Path(r'C:\Users\User\Documents\Projects\Web\share'), + Path(r'C:\Users\User\Documents\Projects'), # Path(r'C:\Users\User\Documents'), # Path(r'C:\Users\User'), ] diff --git a/qrshare/models/route.py b/qrshare/models/route.py index aaecb4c..3b2821e 100644 --- a/qrshare/models/route.py +++ b/qrshare/models/route.py @@ -64,7 +64,7 @@ def general_path(self, quoted=True, clean=False): if self.parent is None: parent_route = '' if clean else '/path' else: - parent_route = self.parent.general_path(quoted, clean) + parent_route = self.parent.general_path(False, clean) path = f'{parent_route}/{self.path.name}' return quote(path) if quoted else path