check if I can create a file at the location