Пример #1
0
 def split_path_by_key(self, path, key):
     """Split an iRODS path to obtain the collection name and the data
     object name"""
     col_path, filename, status = irods.splitPathByKey(path, key)
     if status == 0:
         return (col_path, filename)
     else:
         return (path, '')
Пример #2
0
 def get_file_info(self, irods_path, resource):
     """Get a dictionary of file information"""
     _, coll_name, data_name = irods.splitPathByKey(irods_path, "/")
     return irods.getFileInfo(self.conn, coll_name, data_name, resource)