-
-
Notifications
You must be signed in to change notification settings - Fork 162
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
Same name for file and folder #159
Comments
Are you using I can imagine this being a AFAICR |
Just tested after changing to I noticed that there is a extra / after .password-store. Using pass on the cli gave a similar result, but with only one /
I'm on Arch. |
How is it even possible? I'm on % echo a > aaa
% mkdir aaa
mkdir: cannot create directory ‘aaa’: File exists |
The way pass and qtpass store the files is with Aparently pass first checks for the file I'll do some more testing and take this up with the |
Let's do this proper . . I also tested order of creation (first folder or first file) doesn't matter, you can do either. |
Adding a / to the request doesn't help to make pass know it's a folder either.
The only thing to do in pass is first delete the folder contents, folder gets deleted automagically.
I think I have now described all the ways in which On the passwordstore.org mailinglist @dashohoxha replied that you can |
Some more funny Pass will let you create other interesting entries like |
Fixed upstream here:
With the change, this will delete the directory:
While this will delete the file:
The difference is the trailing slash. After I get through the enormous backlog of mailing list inquiries about various things, I'll release a new version that contains this fix. Thanks for bringing it to my attention. |
👍 awesome!! |
I was just adding and removing files and folders, to see how it works and had this behaviour. Good to know that I could help and will be fixed on next version :) |
Cannot delete a folder or file if they have the same name.
When I try to remove the folder, it prompts to confirm, press "yes" but is not removed. No error message.
When I try to remove the file, after confirmation, it prompts:
rm: cannot remove ‘/home/nuno/.password-store//test’: Is a directory
A folder can be created with same name of an already existing file.
The folder can be removed on cli using rmdir.
The text was updated successfully, but these errors were encountered: