marcelreppi / moodle-buddy

Moodle Buddy is a browser plugin that offers mass download and notification functionality to the Moodle learning management platform
https://moodlebuddy.com
GNU Affero General Public License v3.0
40 stars 3 forks source link

Feature Request: Custom download path #68

Closed HeyMeco closed 2 weeks ago

HeyMeco commented 3 weeks ago

Issue

I want to have my moodle folder be in my documents folder and not in my downloads folder.

Problem

Without setting all downloads to the documents folder but I couldn't see a option to select a custom download path.

Question

Is it possible to add a custom download path setting? Thanks for the awesome extension!

marcelreppi commented 2 weeks ago

Hey,

due to security reasons extension are not allowed to save any files to anywhere outside the "Downloads" directory.

As a workaround you can use symbolic links.

  1. Activate the following setting

    image
  2. Create your desired folder in your "Documents" folder

  3. Delete the "Moodle" folder in the "Downloads" directory if it already exists (you can move it's content to the directory created in step 2)

  4. Create a symbolic link which points from your custom documents folder to the "Moodle" folder in the "Downloads"

For example, on Mac/Linux you can use the following command in the terminal.

ln -s ~/Documents/MyMoodleDocuments ~/Downloads/Moodle

This should place the files automatically inside your desired location (e.g. MyMoodleDocuments). I tested in on my machine and it worked well.

Hope that helps and thanks for using MoodleBuddy 😊

HeyMeco commented 2 weeks ago

@marcelreppi thanks for the elaborate response! Need to check if it'll work with the icloud drive folder