ashchan / ftpsync
- Source
- Commits
- Network (2)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
9633b6c
commit 9633b6cef700d0471dbc25f20ee40d95a211e58c
tree 718cb347dd4fc5495e911780cf367a987af4d428
parent 1311f1b88a831edc55af8d80307f6fe52adb0b7a
tree 718cb347dd4fc5495e911780cf367a987af4d428
parent 1311f1b88a831edc55af8d80307f6fe52adb0b7a
ftpsync / README.md
FtpSync is a simple Ruby class to sync local directory to a remote ftp directory, or copy directories on remote server.
Usage
# ftp = FtpSync.new('ftp.site.com', 'user', 'password')
# ftp.sync('/Users/james/Desktop/test_ftp', '/home/james/Sites')
# ftp.copy_folder('folder1/pic', 'folder2/')
Note
FtpSync doesn't work for FTP server on Windows. Sorry Windows guys. I don't have a chance to test running it on Windows to sync to ftp server on *nix, either.
It's extracted from my personal project, use it at your own risk.
