pyftpsync | Synchronize directories using FTP , SFTP | FTP library
kandi X-RAY | pyftpsync Summary
kandi X-RAY | pyftpsync Summary
Synchronize directories using FTP(S), SFTP, or file system access. Note: Version 4.0 drops support for Python 2.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- The main function
- Parse pyftpsync yaml yaml file
- Set default task argument
- Set the pyftpsync logger
- Create a parser for the run command
- Open the FTP connection
- Write text to file
- Convert to bytes
- Write a lock file
- Prompt the user for a pair of options
- Start synchronization
- Resolve a remote pair
- Classify this entry
- Return a list of all the directories in the current directory
- List files
- Re - classify pair
- Re - classification pair
- Set the mtime of a file
- Add sync info to peer
- Copy data to a file
- Open a temporary file
- Open a file with the given name
- Set the global logger
- Return a list of directory names
- Open the FTP socket
- Called when a conflict is encountered
- Called when a new file entry has changed
pyftpsync Key Features
pyftpsync Examples and Code Snippets
Community Discussions
Trending Discussions on pyftpsync
QUESTION
I am trying to sync two folders via FTP, yes I know there are better or different ways but for now I need to implement it this way, I was trying the example code from pyftpsync since well, a sample code should work easily right? I am just trying to connect between some test folders I made, one is empty(local) and the remote has a single text file that I want to fetch. It tries to connect but after about 2 minutes I get this error.
well, my FTP does work outside of python. I can connect over winSCP just fine.
some places mentioned that a proxy could possibly cause this, but it seems I am not behind a proxy currently, but maybe I did not set that properly and it believes there should be a proxy somehow?
anyways any possible troubleshooting ideas would help. Thank you
here is my code, just using commands on the prompt for pyftpsync produces the same errors for me. So it is possible some input parameter is off causing all of this.
...ANSWER
Answered 2019-May-29 at 06:18Pyftpsync uses FTP protocol.
You are connecting to port 22, which is used for SSH/SFTP.
So if your server is actually SFTP server, not FTP server, you cannot use Pyftpsync with it.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pyftpsync
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page