rex.utilities.utilities.check_res_file

check_res_file(res_file)[source]

Check resource to see if the given path - It belongs to a multi-file handler - Is on local disk - Is a hsds path

Parameters

res_file (str) – Filepath to single resource file, unix style multi-file path like /h5_dir/prefix*suffix.h5, or an hsds filepath (filename of hsds path can also contain wildcards *)

Returns

  • multi_h5_res (bool) – Boolean flag to use a MultiFileResource handler

  • hsds (bool) – Boolean flag to use h5pyd to handle .h5 ‘files’ hosted on AWS behind HSDS