clients/irodsRepositoryClient.py
def localCopyData(self, path = '/tmp'):
        '''
        Makes a local copy of the data files in the iRODS collection, used to upload to repository.
        '''

        path = path + "/" + self.ipc.coll.name
        try:
            shutil.rmtree(path)
        except OSError:
            print path, "does not exist."
                           
        os.makedirs(path)

        for obj in self.ipc.coll.data_objects:
            buff = self.ipc.session.data_objects.open(obj.path, 'r').read()
            with open(path+'/'+obj.name, 'wb') as f:
                f.write(buff)

        return path

        Makes a local copy of the data files in the iRODS collection, used to upload to repository.
        
Makes a local copy of the data files in the iRODS collection, used to upload to repository.
Makes a local copy of the data files in the iRODS collection used to upload to repository .
def localCopyData(self, path = '/tmp'):
        path = path + "/" + self.ipc.coll.name
        try:
            shutil.rmtree(path)
        except OSError:
            print path, "does not exist."
        os.makedirs(path)
        for obj in self.ipc.coll.data_objects:
            buff = self.ipc.session.data_objects.open(obj.path, 'r').read()
            with open(path+'/'+obj.name, 'wb') as f:
                f.write(buff)
        return path
def localCopyData ( self , path = '/tmp' ) : path = path + "/" + self . ipc . coll . name try : shutil . rmtree ( path ) except OSError : print path , "does not exist." os . makedirs ( path ) for obj in self . ipc . coll . data_objects : buff = self . ipc . session . data_objects . open ( obj . path , 'r' ) . read ( ) with open ( path + '/' + obj . name , 'wb' ) as f : f . write ( buff ) return path
Makes a local copy of the data files in the iRODS collection, used to upload to repository.
Makes a local copy of the data files in the iRODS collection used to upload to repository .
'''
        Makes a local copy of the data files in the iRODS collection, used to upload to repository.
        '''
self
path