Files
kotlin-fork/j2k/testData/fileOrElement/issues/kt-824-isDir.java
T
Alexander Udalov 3c859caf2b j2k: flatten test cases and testData directory structure
Move j2k/test/tests -> j2k/tests, j2k/test/testData -> j2k/testData
2015-01-03 00:52:59 +03:00

19 lines
361 B
Java
Vendored

//file
package test;
import java.io.File;
/**
* User: ignatov
*/
public class Test {
public static boolean isDir(File parent) {
if (parent == null || !parent.exists()) {
return false;
}
boolean result = true;
if (parent.isDirectory()) {
return true;
} else
return false;
}
}