microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
111.36k stars 6.56k forks source link

new feature request: batch subfolder remover #21878

Closed BobbyBoyGaming closed 1 year ago

BobbyBoyGaming commented 2 years ago

Description of the new feature / enhancement

when I unzip files sometimes, the program will create a subfolder, then another subfolder of the same name, then another subfolder, then the files of interest.

I am interested in an easy way to simply get rid of superfluous subfolders that do absolutely nothing except extend directory paths.

I want a way of moving all the files from the last subfolder all the way up to the first subfolder and remove all the empty superflous subfolders in the middle.

Scenario when this would be used?

This happens a lot when a person uploads a zipped file then another person rezipps the zipped file then the other guy rezips the file. and it just becomes an unzipping fiasco with a bunch of extra subfolders that nobody wants.

For example if you go to a website like "thingiverse" and let's say you just binge-download a buncha 3d print files you plan to get to print at some point, but then this idiotic website will not just give you the STLs directly into the root folder of a zip file, instead it will give you a zip file that has a subfolder called files, which then may or may not contain another subfolder that has the stls and or their variants.

What if you can just batch download a bunch of thingiverse zips into one Default downlads folder, then batch unzip them into their respective subdirectories, but then have PowerToys remove all these empty subdirectories, e.g. "Files", which is autogenerated by thingiverse, and just "clean up" or simplify your file exploring by reducing the number of clicks you have to make through a bunch of empty folders to get to the files of interest.

Like I said, this happens when people share files but then these files undergo multiple cycles of zipping/unzipping through modification cyles etc. Thingiverse is a perfect example.

Supporting information

No response

BobbyBoyGaming commented 2 years ago

Long story short, "a file directory path shortener" that can do this as a batch operation.

BobbyBoyGaming commented 1 year ago

If any subfolder name might contain useful information that may be lost by shortening the path (by moving the files from the last folder up to the first folder) then what can be done is take all the subfolder names and concatenate the subfoldernames into a single foldername and then apply this concatenated foldername into the first folder. This of course should be an option, that can be turned on or off.

Jay-o-Way commented 1 year ago

Pretty much #9269, am I right?

BobbyBoyGaming commented 1 year ago

Yes, same thing but I would add the note that sometimes the subfolder names can be important. And maybe there should be the option to preserve that filename information as a file ID3 Tag/comment or as a concatenated filenename.

crutkas commented 1 year ago

/dup https://github.com/microsoft/PowerToys/issues/9269

microsoft-github-policy-service[bot] commented 1 year ago

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!