Skip to content

fix: support recursive directory deletion in file manager#3066

Open
bitsbyritik wants to merge 3 commits intotscircuit:mainfrom
bitsbyritik:fix/delete-directory
Open

fix: support recursive directory deletion in file manager#3066
bitsbyritik wants to merge 3 commits intotscircuit:mainfrom
bitsbyritik:fix/delete-directory

Conversation

@bitsbyritik
Copy link
Copy Markdown

@bitsbyritik bitsbyritik commented Mar 27, 2026

Copy link
Copy Markdown
Member

@imrishabh18 imrishabh18 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's not quite readable, create a new hook deleteFilesFromDirectory and that should be handling the deletion of directories

Copy link
Copy Markdown
Member

@imrishabh18 imrishabh18 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logic for deleting directory is incorrect.

-> 1 (dir 1)
   -> 2 (dir 2)
     -> 3 (example.tsx)

If I delete (dir 2), I see that the dir 1 is also removed from the tree.

@bitsbyritik
Copy link
Copy Markdown
Author

bitsbyritik commented Mar 29, 2026

https://www.loom.com/share/4f9ef428bbf54935bf37c0a943a9c527

@imrishabh18

kindly re-verify if we are deleting dir2 and no files left in dir1 then only dir1 is deleting

@bitsbyritik bitsbyritik requested a review from imrishabh18 March 29, 2026 08:30
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 1, 2026

This PR has been automatically marked as stale because it has had no recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale label Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deleting the directory from the code-editor sidebar doesn't work

2 participants