Closed mjbogusz closed 1 year ago
Unfortunately, I will not be able to support this. It would need a significant rewrite.
Please define all your skip_dir and skip_file entries within a single line for now. The pipe separator is of course supported in the GUI as well.
I will try to improve the error handling. I will also look into auto-converting the entries into a single line.
From configparser
docs:
When strict is
True
(the default), the parser won’t allow for any section or option duplicates while reading from a single source (file, string or dictionary), raising DuplicateSectionError or DuplicateOptionError. [...] Otherwise, internal empty lines of a multiline option are kept as part of the value.
I'm not sure how it concatenates the options though, and it's mostly relevant for the one-time import; Therefore I'd consider a clear error message with the single-line workaround mentioned a very valid solution.
Multi-line options 'skip_file' and 'skip_dir' will now be automatically consolidated into a single line.
As per the onedrive usage docs, the
skip_dir
andskip_file
entries can be specified multiple times.Right now OneDriveGUI fails to parse such a config with no GUI-visible error, only with a traceback on the console:
A simple workaround is to merge the multiple lines with a pipe (
|
) as per the docs linked above - this allows the profile to be imported successfully.