Gravity: Wrapper for the mkdir function
Gravity: Checks if a file exists and adds more checks on the file