Java mkdir makeDirectory(File file)

Here you can find the source of makeDirectory(File file)

Description

make Directory

License

Open Source License

Declaration

public static boolean makeDirectory(File file) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.io.*;

public class Main {

    public static boolean makeDirectory(File file) {
        File parent = file.getParentFile();
        return parent != null && parent.mkdirs();
    }/*from w  w w  .ja v a2 s.c  o m*/

    public static boolean makeDirectory(String fileName) {
        File file = new File(fileName);
        return makeDirectory(file);
    }
}

Related

  1. makeDirectories(String path)
  2. makeDirectory(File dir)
  3. makeDirectory(File directory)
  4. makeDirectory(File file)
  5. makeDirectory(File file)
  6. makedirectory(File outputDirectory, String directoryName)
  7. makeDirectory(File testDir )
  8. makeDirectory(final CharSequence aPath)
  9. makeDirectory(final File file, final String extension)