New function: newFileWithPathCString
Simplify this code a bit with newFileWithPathCString
Migrate call from old makeDirectory to new File API