syncthingmanager icon indicating copy to clipboard operation
syncthingmanager copied to clipboard

Add folder on Linux device doesn't work when running stman from Windows

Open gyan002 opened this issue 7 years ago • 1 comments

I am running stman on my Windows 10 Laptop. I have a number of Linux devices. Using the Add folder feature to add a directory on the Linux devices doesn't take the proper path.

For example, if i run the below command: stman --device myhost folder add /develop/syncthing syncthing --label syncthing --foldertype readwrite --rescan-interval 10 On my Linux machine 'myhost' a folder will get added but the path it takes is C:\develop instead of /develop/syncthing

gyan002 avatar Nov 03 '17 06:11 gyan002

The fix will be to require that remote device paths be absolute. We should also specify the remote device platform in the config so that pathlib can format everything consistently. Will work on it once I have a Windows environment to test. https://github.com/classicsc/syncthingmanager/blob/411fd3d10df1a617559de496e5e1fdbd2eabb204/syncthingmanager/init.py#L332

classicsc avatar Jan 03 '18 00:01 classicsc