fun Path.newDirectory(dir: String, vararg fileAttributes: FileAttribute<*>): Path
Resolve the given dir and calls createDirectory.