Java Directory Check checkDirs(String dir)

Here you can find the source of checkDirs(String dir)

Description

check Dirs

License

Open Source License

Declaration

private static void checkDirs(String dir) 

Method Source Code

//package com.java2s;

import java.io.File;

public class Main {

    private static void checkDirs(String dir) {
        File file = new File(dir);
        if (!file.exists()) {
            file.mkdirs();//from w  w w.j av a2  s.c o  m
        }
    }
}

Related

  1. checkDirectory(String value)
  2. checkDirectoryArray(String[] names)
  3. checkDirectoryInWorkspace(String directoryName)
  4. checkDirPath(final String path)
  5. checkDirs(File f)
  6. checkDirs(String dirName)