File indexing completed on 2024-11-27 03:18:06
0001
0002 import sys,os,subprocess
0003 from CommonMethods import *
0004
0005 class FileObj:
0006 def __init__(self):
0007 self.run = 0
0008 self.iovSince = 0
0009 self.fileName = ''
0010
0011
0012
0013 def main():
0014 payloadDir = "./Payloads_Repro2010Nov09/"
0015 aCommand = "ls " + payloadDir + " | grep BeamSpotObjects_2009_LumiBased_ | grep txt"
0016 output = subprocess.getstatusoutput( aCommand )
0017 listOfFiles = output[1].split('\n')
0018
0019 dropbox = "/DropBox"
0020 for fileName in listOfFiles:
0021 fileNameRoot = fileName[0:len(fileName)-4]
0022 print(fileNameRoot)
0023 uploadSqliteFile(payloadDir, fileNameRoot, dropbox)
0024
0025
0026
0027
0028 if __name__ == "__main__":
0029 main()