Skip to content

pyohei/python-ftp-sender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Send files to FTP server

Send files into FTP server with Python.
This script for myself, and there are some bugs in this code.

Eevironment

Python2.7

Usage

Install

git clone https://github.com/pyohei/python-ftp-sender.git

Set up

Install dependent libraries(recommend virtualenv).

cd python-ftp-sender
pip install -r requirements.txt

Create configuration

You need to edit config.ini.

Excecute

You can run with two type of sync.

  1. Sync directory

If you want to sync directory, you must set variables of syncdir and header_path in config.ini.
After setting, you can run script the below command.

python main.py -a True
  1. Sync specific file

If you want to sync specific file, you must set header_path in config.ini.
After setting, you can run script the below command.
You can change the argument of walker.py to your target file name.

python main.py -f walker.py

Testing

You can run test ftp server with next command.

cd testserver
python ftpserver.py

There are connection information in testserver/ftpserver.py

Licence

MIT

About

💻Send files to FTP server 📁

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages