aboutsummaryrefslogtreecommitdiffstats
path: root/mageiaSync/mageiaSyncExt.py
diff options
context:
space:
mode:
Diffstat (limited to 'mageiaSync/mageiaSyncExt.py')
-rw-r--r--mageiaSync/mageiaSyncExt.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/mageiaSync/mageiaSyncExt.py b/mageiaSync/mageiaSyncExt.py
index f2240fd..4abbee6 100644
--- a/mageiaSync/mageiaSyncExt.py
+++ b/mageiaSync/mageiaSyncExt.py
@@ -58,30 +58,6 @@ class checkThread(QThread):
checkvalue += 128
return checkvalue
- def processDate(self):
- import datetime as datetime
- import time
- import locale
- locale.setlocale(locale.LC_ALL, 'C')
- # Get and process the date from the file DATE.txt
- try:
- dateFile=open(str(self.destination)+'/'+self.path+'/DATE.txt','r')
- except:
- return False
- refDate=dateFile.readline()
- lits=re.split("\W+", refDate)
- nums=re.findall("([0-9]+)", refDate)
- refTime=re.findall("[0-9]*:[0-9]*:[0-9]*", refDate)[0]
- refDay=eval(nums[0])
- refYear=eval(nums[-1])
- refMonth=time.strptime(lits[1], "%b").tm_mon
- # Date of file
- info=datetime.datetime.fromtimestamp(os.path.getmtime(str(self.destination)+'/'+self.path+'/'+self.name))
- if(refDay==info.day and refMonth==info.month and refYear==info.year and refTime==info.strftime("%H:%M:%S")):
- return True
- else:
- return False
-
def setup(self, destination, path,name,isoIndex):
self.destination=destination
self.path=path