Classes | |
class | FileObj |
Functions | |
def | main |
def uploadPayloads::main | ( | ) |
Definition at line 13 of file uploadPayloads.py.
00014 : 00015 payloadDir = "./Payloads_Repro2010Nov09/" 00016 aCommand = "ls " + payloadDir + " | grep BeamSpotObjects_2009_LumiBased_ | grep txt" 00017 output = commands.getstatusoutput( aCommand ) 00018 listOfFiles = output[1].split('\n') 00019 # print listOfFiles 00020 dropbox = "/DropBox" 00021 for fileName in listOfFiles: 00022 fileNameRoot = fileName[0:len(fileName)-4] 00023 print fileNameRoot 00024 uploadSqliteFile(payloadDir, fileNameRoot, dropbox) 00025 00026 00027