]>
Commit | Line | Data |
---|---|---|
1 | #!/usr/bin/env python3 | |
2 | # vi: encoding=utf-8 ts=8 sts=4 sw=4 et | |
3 | ||
4 | from __future__ import print_function | |
5 | ||
6 | import sys, os | |
7 | sys.path.insert(0, os.environ['HOME']+'/pld-ftp-admin/modules') | |
8 | import ftptree | |
9 | import ftpio | |
10 | import config | |
11 | ||
12 | if len(sys.argv) < 2: | |
13 | print("ERR: not enough parameters given") | |
14 | print("unlock.py tree") | |
15 | sys.exit(1) | |
16 | ||
17 | for tree in sys.argv[1:]: | |
18 | ftpio.connect() | |
19 | print("Unlock %s: %s" % (tree, ftpio.unlock(sys.argv[1]))) |