@NullSafe
  public static boolean createDirectory(File path) {
    return (path != null && !path.isFile() && (path.isDirectory() || path.mkdirs()));
  }
@ NullSafe public static boolean createDirectory ( File path ) { return ( path != null && ! path . isFile ( ) && ( path . isDirectory ( ) || path . mkdirs ( ) ) ) ; }
Creates a file system directory with the given {@link File} path.

@param path the given {@link File} indicating the file system path of the directory to create.
@return true if the path represented by the {@link File} object is not null, is not an existing file,
or the path can be created as a directory if it does not already exist.  Returns true if the directory
already exists.
@see java.io.File#mkdirs()