a common mistake here is that you don't check the boolean value return from the mkdir() method. It returns true if the operation succeeded, false if the user doesn't have permission or anything else...