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.