i´m writing a function to check important settings in the programm. Among other things I would like to check if i have read and write access to a folder. Is there a way to check