项目作者: rm3n

项目描述 :
Syncs locally changed items to FTP
高级语言: Python
项目地址: git://github.com/rm3n/SyncFTP.git
创建时间: 2019-08-02T19:40:05Z
项目社区:https://github.com/rm3n/SyncFTP

开源协议:

下载


SyncFTP

1) clone the repository
2) setup the settings in script : scanpath, virtualpath, filename, ftpUsername, ftpPassword, ftpURL or you can create a
settings.py

  1. ftpUsername = "ftpuser"
  2. ftpPassword = "ftppassword"
  3. ftpURL = 'ftp.service.com'
  4. scanpath = "C:/Users/app/publish/"
  5. virtualpath = '/app/dev/'
  6. filename = 'app.dictionary'

3) run the file

How it works?

running for the first time it will checksum scanpath, assuming it has been mapped to your ftp as virtualpath creating file info database with filename.
next time you run, it will look for changes in directory, files for add/delete/modifications.

  • for settings.py and filename to work you will need to make sure you run with same current working dir