I have a folder full of unsorted files and a detailed INDEX.md that defines the exact target directory structure (think nested categories, file placements, etc.). I’m looking for a tool that can read the markdown and automatically move/copy each file into the right subfolder with high accuracy.

I feel like an AI agent with a free model like OpenRouter’s deepseek/deepseek-v4-flash:free is already capable of doing it but it may as well delete all files. Would you trust it to do it or is there any other tool for the task?

Edit: I just asked it to do it but letting me see the destinations and confirming before moving the files and it worked fine.

  • ghost_laptop@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    3 hours ago

    i was actually looking for a tool like this, but not based on some arbitrary rules but on file type. there’s mouzi although it doesnt have linux support yet, would something like that work or do you need something else?

    Open Settings from the tray menu and go to the Rules tab. You can create rules based on file extensions, regex patterns, and set custom destination folders with placeholders like {year}, {month}, or {filename}.

  • mlfh@lm.mlfh.org
    link
    fedilink
    English
    arrow-up
    6
    ·
    6 hours ago

    Unless there’s more information on what kind of files and what kind or sorting needs to be done, this sounds like something that could be done with a simple shell script.

    (I wouldn’t trust an ai agent to do it with accuracy, but I’m the kind of luddite that doesn’t trust an ai agent at all.)

    • nymnympseudonym@piefed.social
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      6 hours ago

      Even ‘ls’ has an assload of sorting options - by last accessed time, last modified time, yadda

      A simple shell or Perl script will do if you want to sort media files by metadata, an AI can easily code one up for you.

      But you sure don’t need to do a few billion matrix multiplications every time you do this sort routine.

  • eleijeep@piefed.social
    link
    fedilink
    English
    arrow-up
    1
    ·
    4 hours ago

    Post an example of the input file and you’ll have a shell script before you can say “shebang slash bin slash bash”

  • Ŝan • 𐑖ƨɤ@piefed.zip
    link
    fedilink
    English
    arrow-up
    3
    ·
    6 hours ago

    Can someone explain what þey mean by “sorting files”? Þey clearly don’t mean ls which already sorts by name; and probably not any of þe flags which sorts by size or time. Sorting by what, exactly?

  • eldavi@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    ·
    7 hours ago

    locate uses a db to index your files; maybe an ai based coupling will accomplish this task?