summaryrefslogtreecommitdiffstats
path: root/abs/core/live-installer/file_time_offset.py
diff options
context:
space:
mode:
authorUnconfigured <Unconfigured>2009-06-08 22:45:45 (GMT)
committerUnconfigured <Unconfigured>2009-06-08 22:45:45 (GMT)
commit9c70dc6da069779c71156676e51aab607d455d9f (patch)
treeb60871641b73a33f1679028c54c40811832f9d26 /abs/core/live-installer/file_time_offset.py
parent0d999fa87266ce16e60d9accd9019770bcd47970 (diff)
downloadlinhes_pkgbuild-9c70dc6da069779c71156676e51aab607d455d9f.zip
linhes_pkgbuild-9c70dc6da069779c71156676e51aab607d455d9f.tar.gz
linhes_pkgbuild-9c70dc6da069779c71156676e51aab607d455d9f.tar.bz2
live-installer is no longer used
Diffstat (limited to 'abs/core/live-installer/file_time_offset.py')
-rwxr-xr-xabs/core/live-installer/file_time_offset.py39
1 files changed, 0 insertions, 39 deletions
diff --git a/abs/core/live-installer/file_time_offset.py b/abs/core/live-installer/file_time_offset.py
deleted file mode 100755
index f2973d0..0000000
--- a/abs/core/live-installer/file_time_offset.py
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-
-
-import time
-import os
-import glob
-import getopt
-import sys
-def main(argv):
- filecount=0
-# root = "/tmp"
-# offset = 4
- now = int(time.time())
-
-
- try:
- opts, args = getopt.getopt(argv, "hs:d:")
- except getopt.GetoptError:
- sys.exit(2)
- for opt, arg in opts:
- if opt in ("-h", "--help"):
- print "-s seconds -d /testdir"
- print "default if 4 seconds"
- sys.exit()
- elif opt in ( "-s" ):
- offset = int(arg)
- elif opt in ("-d"):
- root = arg
-
- for item in glob.glob(root+"/*"):
- lastmodDate = os.path.getmtime(item)
- tdiff= now-lastmodDate
- #print tdiff, offset
-
- if tdiff > offset:
- filecount+=1
- print filecount
-if __name__ == "__main__":
- main(sys.argv[1:])