New J2K: Split old j2k and new j2k tests
This commit is contained in:
committed by
Ilya Kirillov
parent
02a206bf7c
commit
b411e8e18e
+19
@@ -0,0 +1,19 @@
|
||||
//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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user