-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
File Exporer Context Menu: Empty Folder #15762
Comments
How often do you actually do this? The first one is just Enter, Ctrl+A, Ctrl+X, Backspace, Ctrl+V. The recursive operation can be manually performed by using any file search tool and just Ctrl+A and then dragging and dropping the files into the desired directory. You could write a simple PowerShell script or something else that does this. As a suboptimal PoC you can use this .reg file:
|
That 2nd reg code does move all files to the root (by root, I mean the parent of the folder you right-clicked on). It might have some issues deleting some of the leftover empty directories but solving that in one line without any kind of force switch was more than the 5 minutes I was willing to spend on this. |
Thanks for finding (and linking) that one, I'm definitely going to use it. I still think a feature like this could be useful as a power toys option. |
Duplicate of #9269 |
Issue is a duplicateThank you for your issue! We've linked your report against another issue to centralize the thread. Thanks for helping us to make PowerToys a better piece of software. |
Description of the new feature / enhancement
It would be an option in the file explorer context menu when you right-click on a folder, it would be called "empty folder to current directory" or similar and there would be a second option called "empty folder to current directory recurcivley". The first option would take all the files out of the folder that is being right-clicked on and move them into the directory being viewed, i.e. into the same directory as the folder that was storing them moments ago. The "recursively" option would continue doing this for every subdirectory until what was left was only files and not folders. Ideally, you would be able to select multiple folders at once and do it to all of them.
Scenario when this would be used?
This would be really helpful, as there is currently no way I know of to speed up this process when you have to go into many folders and empty out their contents.
Supporting information
No response
The text was updated successfully, but these errors were encountered: