https://github.com/pyohei/python-ftp-sender
๐ปSend files to FTP server ๐
https://github.com/pyohei/python-ftp-sender
ftp ftp-client python2
Last synced: 4 months ago
JSON representation
๐ปSend files to FTP server ๐
- Host: GitHub
- URL: https://github.com/pyohei/python-ftp-sender
- Owner: pyohei
- License: mit
- Created: 2015-04-06T13:56:28.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2018-07-02T21:58:39.000Z (over 7 years ago)
- Last Synced: 2024-12-29T01:32:07.987Z (about 1 year ago)
- Topics: ftp, ftp-client, python2
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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).
```sh
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.
```sh
python main.py -a True
```
2. 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.
```sh
python main.py -f walker.py
```
## Testing
You can run test ftp server with next command.
```sh
cd testserver
python ftpserver.py
```
There are connection information in `testserver/ftpserver.py`
## Licence
MIT