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

  • i can imagine this would speed up distrohopping by 10x

    I am confusion. It seems like this wouldn’t help much with distro-hopping at all. At least not the way I learned to reinstall OSes, i.e. keep /home and make sure to back up important config files you edited.

      • Partitions.

        Many distros will partition your disk as /, /home, and swap.

        If you want to, when installing a different distro, you can manually format and install the system to / and not format /home but flag it to be mounted as home.

          • Oh it certainly can! I haven’t done it like this in a long time. My hopping days are all but over and the main things I need to backup are music, photos, and books. As long as I have them on some external drive I just wipe it all and start over. Still, though, the option is there.

          • Upgrades/downgrades can always cause issues, but more often than not you’re totally fine, especially during upgrades. I tend to declutter my home a little too. E.g. I keep the configurations for Firefox and Thunderbird but delete their cache, for Inkscape I may keep my custom palettes only. For a lot of Gnome tools, I just delete all the configuration, especially for stuff that I only use once a month. However, the major issue during that process for me is that accidents happen occasionally.

  • Such AI can be coded in <100 lines shell script. One of simplest implementations:

    #!/bin/bash
    
    find . -type f -print0 | while IFS= read -d $'\0' f; do 
      type=$(file --mime-type --brief -- "$f")
      mkdir -p "$type"
      mv -- "$f" "${type}/"
    done
    
    • Thats pretty much how I‘d do it. Now I need to sort through a decade of old backups and deduplicate them. Also need to distinguish between „loose“ files and program/website structures which usually have different file types inside. Probably need to auto archive them into tar.gz or something.

  • 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?

    • I think a lot of folks with very limited IT knowledge think AI will solve things that have been solved for decades.

      The issue is availability and elitism. A noob user doesnt know how to find this stuff, google is so rotten that its not help anymore and pros often just shit on them instead of making a comprehensive wiki.

  •  Handles   ( @halm@leminal.space ) 
    link
    fedilink
    English
    3
    edit-2
    8 months ago

    This requires no “AI”, just some simple rule-based automation, at most some algorithmic sorting.

    • Android (or some custom branded Android versions?) automatically save downloaded files in folders by Pictures, Documents, etc unless you tell them.not to.
    • Office365 offers the PowerAutomate function, but knowing Microsoft they probably overcomplicated things a bunch. [Edit: obviously this isn’t FLOSS, just a hint at what to look for alternatives to…]

    This approach never appealed to me as I want to know where things are rather than where some subroutine thinks it belongs, but I’m certain you will find plenty of software that offers an auto sorting feature.

      • I never did that way and its not a script, but you can check if lidarr can rename and sort your music. It might require some manual work like adding artists, I dont know is it good enough for you honestly. For documents paperless-ngx can make them searchable and organized.

        I know its not exactly what you are looking for, but both projects are amazing and offer something close