How can i know if i can write a file in a folder without really write a file and check for errors?