]> git.pld-linux.org Git - projects/pld-ftp-admin.git/blobdiff - modules/common.py
This commit was manufactured by cvs2git to create branch 'AC-branch'.
[projects/pld-ftp-admin.git] / modules / common.py
diff --git a/modules/common.py b/modules/common.py
deleted file mode 100644 (file)
index d36242b..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-# vi: encoding=utf-8 ts=8 sts=4 sw=4 et
-
-import os, sys, config
-
-def fileexists(path):
-    if path[0]=='/':
-        fullpath=path
-    else:
-        fullpath=config.ftp_dir+path
-    return os.path.exists(fullpath)
-
-def checkdir(dir):
-    if not fileexists(dir):
-        print 'ERR: ' + config.value['ftp_dir']+'/' + dir + " does not exist"
-        sys.exit(1)
-
-if 'HOME' in os.environ:
-    ftpadmdir=os.environ['HOME']+'/pld-ftp-admin/'
-else:
-    ftpadmdir='../'
-noarchcachedir=ftpadmdir+'var/noarch-cache/'
-tmpdir=ftpadmdir+'var/tmp/'
-
This page took 0.03202 seconds and 4 git commands to generate.