Stats

44 Contributors: 4 Friday, October 21, 2016
Licensed under: CC-BY-SA
Not affiliated with Stack Overflow
Rip Tutorial: riptutorial@gmail.com
Roadmap: roadmap

Checking Path Existence and Permissions

Parameters

ParameterDetails
os.F_OKValue to pass as the mode parameter of access() to test the existence of path.
os.R_OKValue to include in the mode parameter of access() to test the readability of path.
os.W_OKValue to include in the mode parameter of access() to test the writability of path.
os.X_OKValue to include in the mode parameter of access() to determine if path can be executed.

Related Examples