Answers for "python check if file is writable"

0

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
Posted by: Guest on January-04-2021

Code answers related to "python check if file is writable"

Python Answers by Framework

Browse Popular Code Answers by Language