1 # vi: encoding=utf-8 ts=8 sts=4 sw=4 et
3 from __future__ import print_function
11 fullpath = config.ftp_dir + path
12 return os.path.exists(fullpath)
15 if not fileexists(dir):
16 print('ERR: ' + config.value['ftp_dir']+'/' + dir + " does not exist", file=sys.stderr)
19 if 'HOME' in os.environ:
20 ftpadmdir = os.environ['HOME'] + '/tld-ftp-admin'
24 # noarchcachedir is dir where noarch files contents are stored for AI
25 # XXX: file reference where the AI resides
26 noarchcachedir = ftpadmdir + '/var/noarch-cache/'
28 tmpdir = ftpadmdir + '/var/tmp/'