Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python check if file is writable

os.access('path/to/file/or/folder', os.W_OK) # Write
os.access('path/to/file/or/folder', os.R_OK) # Read
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #check #file #writable
ADD COMMENT
Topic
Name
8+3 =