-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nested sub-folders not working, path is treated as folder name #603
Comments
@thijsvdn Have you tried separating your folders with backslashes rather than forwardslashes? https://github.com/lastpass/lastpass-cli/wiki/Specifying-sub-folders-(or-sub-groups) |
Thanks, searched high and low for a solution and despite that I've still managed to miss that article. I did try generating an item with a name structured using the "top\subfolder with spaces/my site with spaces" method, this resulted in the tool returning a password without adding it to LastPass if I'm not mistaken. In any case it did not have the desired result. Not sure if I tried "op\\subfolder/my-site", I'll give it a go as soon as possible. |
Did some further testing, it seems to be related to shared folders. Trying to generate a password in a regular folder Generating a password for |
Having same issue. It is visible only when having more than 1 level sub-folders not on single level, using double backlashes to separate sub-folders works when adding password like "main-folder\sub-folder/password-entry-name", It looks fine from LastPass web Vault but then when trying to access same password from CLI with full path and backslashes to separate folder (basically same way I create them) it failed to unable to retrieve password. Steps to reproduce:
|
Possible duplication #266 |
When generating a new password nested sub-folders are not created. It seems
lpass
only treats the last forward slash as a separator between the folder and item name. This causes the creation of a folder containing with the full path (minus the part after the last slash) as its name instead of creating a series of nested sub-folders.Example, when creating a password with:
lpass generate --username="foo" --url="https://foo.bar" --no-symbols "my/nested/subfolder/item_name" 32
Actual behaviour:
Expected behaviour:
The text was updated successfully, but these errors were encountered: