Topic: Get File move location in script

Is there any way from within a script that I can access the path set in Picard's Options under:

Options->Options->File naming->Move files to this directory when saving

I'd like to perform some folder related functions with my script, and knowing the root of the path that Picard is moving files to would be a great help.

Re: Get File move location in script

The normal way to do this in a plugin is to get the config from the tagger object, which is linked to every album or track object passed in the callback hook:

config = album.tagger.config # or track.tagger.config

The settings you'll want are
config.setting["move_files"] - boolean flag for whether you've enabled moving
config.setting["move_files_to"] - the directory set in options

Re: Get File move location in script

Re-reading your question, you asked about the script... but no, you can't get access to config settings from tagger script.

Why do you need this path in a tagger script? What's the use case?

Re: Get File move location in script

Sorry, when I said script I meant plugin - so you answered my question. I'll enumerate the whole of config.setting to see what else is in there. Thanks!