This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# git config annex.iwebftp-hook "/usr/local/bin/git-annex-ftp.py -s prefix.iweb-storage.com -u prefix-admin -p password" | |
# git annex initremote iwebftp type=hook hooktype=iwebftp encryption=none | |
from ftplib import FTP, error_perm | |
import os, argparse | |
parser = argparse.ArgumentParser(description='Combined hook for FTP remotes in git-annex') | |
parser.add_argument('-s', '--server', required=True, help='the FTP host name or IP address') |