Java Directory Check checkDirectory(File directory)

Here you can find the source of checkDirectory(File directory)

Description

check Directory

License

Open Source License

Declaration

private static void checkDirectory(File directory) 

Method Source Code

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

import java.io.File;

public class Main {
    private static void checkDirectory(File directory) {
        if (!directory.isDirectory()) {
            throw new IllegalArgumentException(directory.getAbsolutePath() + " is not a directory");
        }/*w w  w .  j  a v a 2  s.  co  m*/
    }
}

Related

  1. checkDirAndCreate(File dir)
  2. checkDirCopy(File srcDir, File destDir)
  3. checkDirectory(File dir)
  4. checkDirectory(File directory)
  5. checkDirectory(File directory)
  6. checkDirectory(File directory, String pckgname, ArrayList> classes)
  7. checkDirectory(File file)
  8. checkDirectory(File target)
  9. checkDirectory(final File directory)