Implement Directory.makeDirectory.