示例#1
0
 def extractFileSizes(self):
     '''Get the file size for each file, from the eos ls -l command.'''
     # EOS command does not work in tier3
     lsout = castortools.runXRDCommand(self.castorDir, 'dirlist')[0]
     lsout = lsout.split('\n')
     self.filesAndSizes = {}
     for entry in lsout:
         values = entry.split()
         if (len(values) != 5):
             continue
         # using full abs path as a key.
         file = '/'.join([self.lfnDir, values[4].split("/")[-1]])
         size = values[1]
         self.filesAndSizes[file] = size
示例#2
0
 def extractFileSizes(self):
     '''Get the file size for each file, from the eos ls -l command.'''
     # EOS command does not work in tier3
     lsout = castortools.runXRDCommand(self.castorDir,'dirlist')[0]
     lsout = lsout.split('\n')
     self.filesAndSizes = {}
     for entry in lsout:
         values = entry.split()
         if( len(values) != 5):
             continue
         # using full abs path as a key.
         file = '/'.join([self.lfnDir, values[4].split("/")[-1]])
         size = values[1]
         self.filesAndSizes[file] = size