Java mkdir makeDirByChild(File file)

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

Description

make Dir By Child

License

Apache License

Declaration

public static boolean makeDirByChild(File file) throws IOException 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.io.File;

import java.io.IOException;

public class Main {

    public static boolean makeDirByChild(File file) throws IOException {
        File parent = file.getParentFile();
        if (parent != null) {
            return parent.mkdirs();
        }/*from www. j a  v a 2s.  c  o m*/
        return false;
    }
}

Related

  1. makeDir(String dirPath)
  2. makeDir(String newDirName)
  3. makeDir(String parent, String child)
  4. makeDir(String path)
  5. makeDir(String path)
  6. makeDirDirs(String dir)
  7. makeDirectories(final File file)
  8. makeDirectories(final String location)
  9. makeDirectories(JarFile jar, String eviwareDir)