firecamp-dev / firecamp

Developer-first OpenSource API DevTool, Postman/Insomnia alternative.

Home Page:https://firecamp.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[bug]: user should not be allowed to create folders with same name inside a single collection

Nick-h4ck3r opened this issue · comments

Describe the bug
Currently, users can create folders with the same name inside a single collection. This should not be the ideal scenario.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Collection Explorer'
  2. Create a collection with the name 'anyname'.
  3. Create a folder inside it as 'test'.
  4. Create another folder inside 'anyname' collection as 'test'.

Expected behavior

Creating a file/folder with the same name, inside the same parent directory should be disabled. The user should get a prompt with a similar error as follows.

image
Image screenshot from vscode

Screenshots
firecamp
Current scenario in firecamp

Desktop (please complete the following information):

  • OS: All
  • Browser: All
  • Version: All

I would like to work on this issue, @Nishchit14 assign me this one.

Thank you for bringing the PR quickly @Nick-h4ck3r