]> git.pld-linux.org Git - projects/pld-ftp-admin.git/blob - bin/pfa-unlocktree
more python3 readiness
[projects/pld-ftp-admin.git] / bin / pfa-unlocktree
1 #!/usr/bin/env python
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])))
This page took 0.036799 seconds and 3 git commands to generate.