"Download attachments for current folder" / "Export folder"

Use case or problem

Obsidian v1.8 introduces “Download attachments for current file”, but what if I want to export images for or mirror multiple files at once? The solution would be “Download attachments for current folder” or “Export folder” — command accessible via RMB click on the desired folder.

I use obsidian for TTRPG notes for my players and I have a lot of unsorted attachments. Going through them was such a chore, but with this new function it is easier, yet I still have to go through dozens or even hundreds of files which are all located in one folder.

Such functionality will allow to export parts of the vault and makes the vault way more portable, it’s simple to implement and builds up on already implemented function to take it to another level!

Proposed solution

Two ideas on how to approach this:

  1. Make a “Download attachments for current folder” command that’s accessible via RMB click on the desired folder and just run “Download attachments for current file” through the folder sequentially or via some other algorithm.

  2. This can be taken to another level and done instead as “Export folder” command which will copy the folder contents, make another folder called “Files” and put all attachments in there and ideally put it all in zip archive or something. In most cases you will want this functionality anyway so this sounds like a sensible solution, and if you want only files then just delete all the other files from the created copy, leaving you only with the desired “Files” folder.

Current workaround

Currently the only way to achieve this is to go through files manually, which is very tedious.

Related feature requests

Download attachments for current file — Workflow?]('Download attachments for current file' - Workflow?)

Now I needed it and turns out it doesn’t download a copy of internal files, only works for external? :frowning:

I am on macOS using Obsidian 1.8.9. I don’t see the “Download attachments for current folder” command. How do you access it?

I found it. Not accessible via menu or right click. You have to click on the. “>_” in the sidebar to open the Command Palette (why is this not in the menus?) and search for “Download attachments for current folder” from within the command palette

Or Ctrl-P / Cmd-P

@BaconDog Also, this is a feature request for “Download attachments for current folder”.

The command that already exists is “Download attachments for current file”. (And you can also map a hotkey to that command.)

2 Likes