Download path for entire folder, in FileContent module

LabKey Support Forum (Inactive)
Download path for entire folder, in FileContent module leyshock  2016-09-27 10:28
Status: Closed
 
Hello,

I'm trying to get a download path / link for an entire folder stored in a FileContent module. The instructions here (https://www.labkey.org/home/Documentation/wiki-page.view?name=fileSharing) clearly show how to get a path to a single file, but do not show how to get a path to an entire folder.

With the info given here (https://www.labkey.org/home/Documentation/wiki-page.view?name=fileURL) I suspect I could put together a solution, but before I try to do so I figured I ask to see if there's a precedent for this. I looked through the wiki and forums but didn't find anything.

Any suggestions appreciated.

Thanks, Patrick
 
 
jeckels responded:  2016-09-27 23:04
Hi Patrick,

Are you looking to give users a direct link to view the folder/directory in the web interface, or to download its contents?

To do the former, you can use the special WebDav URL for the server, which is available at <BASE_SERVER_URL/_webdav/. For example, for this server (labkey.org) go to:

https://labkey.org/_webdav

You can then browse and see the direct URL in the bottom of the page.

In the same view, you can check the box for a folder and click the download icon to get a ZIP file containing all of the files in that subfolder. This also works for multiple folders or files.

Thanks,
Josh