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@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    9 months ago

    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:

    Create a python program that does the following:
    
    -asks the user for a directory to process
    
    -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.
    
    -creates any new sub folders before moving the files
    
    -moves the files verbosely
    
    -gives the user a notification upon finishing
    

    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.

  • bizdelnick@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    9 months ago

    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
    
  • flubba86@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    9 months ago

    Every single file on my computer is saved under ~/Downloads why would I want to sort it somewhere else when I already know exactly where it is?