gfal_get_results_python(3) - Linux man page
Name
gfal_get_results - Extracts the results from the 'gfal_internal' objectSynopsis
import gfal(int returncode, gfal_internal gfal, listOfDict filestatuses ) gfal_get_results (gfal_internal gfal );
Description
- gfal
- gfal_internal object generated from user parameters.
- filestatuses
- List of dictionary. See the next section to know the field you can get from it.
Result Dictionary Fields
Keep in mind that all fields are not fulfilled by all functions!- string surl
- The SURLs concerned. Fulfilled by all functions.
- string turl
- The TURL associated to the SURL in surl. Fulfilled by gfal_turlsfromsurls_python(3), gfal_getstatuses_python(3).
- int status
- For almost all function it corresponds to errno values ('0' means that all is ok). But for asynchronous functions, possible values are -1, 0 and 1, what correspond respectively to error, pending and done. Fulfilled by all functions.
- string explanation
- Error message associated with status. Can be fulfilled by all functions, but only when SRMv2 interface is used.
- int pinlifetime
- Remaining pin life time for surl. Fulfilled by gfal_turlsfromsurls_python(3), gfal_getstatus_python(3), gfal_bringonline_python(3), gfal_prestagestatus_python(3) when SRMv2 interface is used.
- string locality
- File locality. Possible values are: ONLINE, NEARLINE, ONLINE_AND_NEARLINE, LOST, NONE, UNAVAILABLE, UNKNOWN.
- list stat
- Stat information about the surl. Each field of the list corresponds to the same thing than in a system python stat. So the field are respectively st_mode, st_ino, st_dev, st_nlink, st_uid, st_gid, st_size, st_atime, st_mtime, st_ctime. It is ONLY fulfilled by gfal_ls_python(3).
- listOfDict subpaths
- Information about files in the directory (if there are ones) surl. It is ONLY fulfilled by gfal_ls_python(3) when you define srmv2_lslevels to '1' in the gfal_request object.
- string checksumtype
- Name of the checksum algorithm (for example ADLER32, MD5 ). It is ONLY filled by gfal_ls_python(3).
- string checksum
- The checksum value. It is ONLY filled by gfal_ls_python(3).
- listOfString spacetokens
- The list of space tokens. Filled by gfal_prestage_python(3) when SRMv2 interface is used.