Windows needs go filepath functions

Please describe what you are doing to trigger the bug:
In Windows, not able to run a backup from a subdirectory whose parent contains the duplicacy preference directory.

Please describe what you expect to happen (but doesn’t):
Duplicacy would find the .duplicacy directory by traversing up the current directory path.

Please describe what actually happens (the wrong behaviour):
On windows, the .duplicacy directory is not found due to backslashes in the path vs forward slashes.

Possible solution
The code uses the functions from the go path package. Changing this to use the corresponding functions from the go path/filepath package would fix this. Specifically, the change would go in this function:

getRepositoryPreference

Thank you to all for your work on this project!

1 Like