ICI Modules: sys: access
Modules by name : by typeSynopsis
sys.access(string [, int])Description
Determine accessibility of the file named in the first argument. If the file does not exist or the access mode is not permitted an error is raised.
The following variables are pre-defined by the sys module with int values derived from the system's C include files.
- sys.F_OK - determine file existence
- sys.R_OK - determine readability
- sys.W_OK - determine writability
- sys.X_OK - determine execute status
The default, no access mode is give, is sys.F_OK.