public void createDirectory( final Path dir,
final FileAttribute<?>... attrs )
throws UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException {
checkNotNull( "dir", dir );
final Path realDir = dir.toAbsolutePath();
if ( realDir.toFile().exists() ) {
throw new FileAlreadyExistsException( dir.toString() );
}
realDir.toFile().mkdirs();
}