Ejemplo n.º 1
0
 def listFiles(self):
     """
     Get the list of files to be archived
     """
     current_month = NoaaCycle.last_month()
     # 2do archive contain extra path: data/noaa/metar/2011-* ; better is 2011-*
     dir_regex    = os.path.join(self.download_dir, "%s-*" % current_month)
     self.archive_name = os.path.join(self.download_dir, current_month)
     return glob.glob(dir_regex)