mar10 / pyftpsync

Synchronize directories using FTP(S), SFTP, or file system access.
https://pyftpsync.readthedocs.io
MIT License
117 stars 25 forks source link

How to escape special characters in connstring? #89

Closed foxymama1 closed 1 year ago

foxymama1 commented 1 year ago

I have the conn string like this sftp://tester1:8otB6M}QCw%IO]IC@192.168.10.21/test There seems to be a special character in it so this error occurs when i try to execute pyftpsync upload command image How can i escape it?

mar10 commented 1 year ago

This also depends on the console type. For example Poweshell expects a backtic as escape character and arguments shold be enclosed in quotes. However in this case the URL parser refuses special characters. You could try to URL-encode it: 8otB6M%7DQCw%25IO%5DIC