mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-30 16:21:49 +07:00
GitOrigin-RevId: 20a3201990913377e24c751e6f424ac01915549b
12 lines
280 B
Java
12 lines
280 B
Java
import java.io.*;
|
|
import java.nio.file.*;
|
|
|
|
class C {
|
|
public boolean isRelativeDirectory() {
|
|
String fileName = "foo";
|
|
Path path = Paths.get(fileName);
|
|
if (path.isAbsolute()) return false;
|
|
System.out.println(fileName);
|
|
return Files.isDirectory(path);
|
|
}
|
|
} |