serokell / coffer

Multi-backend password store with multiple frontends
4 stars 2 forks source link

[#9] Directory check in `create` command #34

Closed DK318 closed 2 years ago

DK318 commented 2 years ago

Problem: we can create entries and directories with the same names. Solution: added subfunction checkForEntriesInEntryPath which tries to find an existing entry subpath in given path. Then checked if the given entry path is an existing directory or contains existing entries in subpaths.

Description

Related issue(s)

dcastro commented 2 years ago

Please tick off items from the PR checklist as appropriate.

The Public contracts section doesn't really apply at the moment, because we haven't released anything yet, so you can tick those off too.

dcastro commented 2 years ago

And add the issue number in the "related issues" section, e.g. Fixed #9. When a PR has this in its description, github will automatically close the issues when the PR is merged.