File.createDirectories

Overview | Methods | This Package | All Packages

File.createDirectories

Creates all directories designated by the specified path.

Syntax

public static void createDirectories( String path )

Parameters

path

The path of directories to create.

Exceptions

WinIOException thrown if an error occurs.

Remarks

Unlike the createDirectory method, this method creates as many directories as are required to guarantee that the specified path is valid. It is not an error if some or all the specified directories exist. The path parameter specifies a directory path, not a file path. To ensure that all directories in a file path are created, use the constructor File.createDirectories(File.getDirectory(filePath)).