is there a foss project to automatically sort files

do you know that minecraft mod that autosorts your inventory? is there are project that can autosort a messy file system and put all of your files of a similar nature into a well organised, well named order. obviously this would require ai that could do image, language, and audio recognition but is there anything in the works? i can imagine this would speed up distrohopping by 10x. ai powered file management

z00s, (edited )

Lately I’ve been using chatGPT to create a bunch of small custom python programs to do stuff like this (if I can’t easily find an existing program to do what I want).

For example I would tell it something like:


<span style="color:#323232;">Create a python program that does the following:
</span><span style="color:#323232;">
</span><span style="color:#323232;">-asks the user for a directory to process
</span><span style="color:#323232;">
</span><span style="color:#323232;">-sorts the files in that folder according to file type, placing them into appropriately named sub-folders, eg all image files into a folder named "images", all music files into "music" and so on.
</span><span style="color:#323232;">
</span><span style="color:#323232;">-creates any new sub folders before moving the files
</span><span style="color:#323232;">
</span><span style="color:#323232;">-moves the files verbosely
</span><span style="color:#323232;">
</span><span style="color:#323232;">-gives the user a notification upon finishing
</span>

You can customize it to do exactly what you want, and it takes only seconds for it to give you the code.

I can’t even begin to tell you how much time it’s saved me over the last few weeks, automating simple stuff that would normally take ages.

savvywolf,
@savvywolf@pawb.social avatar

Does this “obviously” have to use AI? I can see a tool that sorts files into folders based on file extensions, modification dates and/or metadata could get the work done.

And if organising files by content (e.g. “my zoo trip”, “meetings with Xenia”) is that important, doing it manually seems like a better idea because accuracy is presumably important.

I don’t really see the distro hopping argument either. Even if you don’t share your home directory between installs, presumably you copy over your files as directories rather than individually pouring them into one super folder?

techwithjake,

Maybe organize-tool would help? You have to set the parameters but I love it for getting my home folders organized.

Diabolo96, (edited )

Maybe you’re looking for Multimodal RAG ?

bionicjoey,

“Please move all of the media files in my home folder into the /home/me/media folder”

AI: moves the assets from all of your video games into one folder

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #