function CreateDir(const Dir: String): Boolean;
Creates a new directory. The return value is True if a new directory was successfully created, or False if an error occurred.