Change Download Folder - C0D3D3V/Moodle-DL GitHub Wiki

Unless otherwise configured, moodle-dl downloads all course files to the current working directory. This working directory can be changed with the command cd path/in/which/you/want to change.

The --path PATH option defines the storage location for the configuration, logs and downloaded files. This option can be appended to all moodle-dl commands.

There are also two settings which can be specified in the config.json download_path and misc_files_path.

  • download_path: specifies the download path of the files on moodle itself
  • misc_files_path: specifies the path for metadata files of moodle-dl
    "download_path": "C:\PATH\TO\DOWNLOAD\LOCATION",
    "misc_files_path": "C:\PATH\TO\FILES_LIKE_moodle_state.db_and_Cookies.txt",

So you could use the --path option to specify in which folder the config.json is located and then specify within the config.json in which folder the files should be downloaded (download_path) and where the local database and other metadata should be stored (misc_files_path).