os.access('path/to/file/or/folder', os.W_OK) # Write os.access('path/to/file/or/folder', os.R_OK) # Read
Check read write file access