mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
11 lines
272 B
Java
11 lines
272 B
Java
import java.io.*;
|
|
import java.nio.file.*;
|
|
|
|
class C {
|
|
public boolean isRelativeDirectory() {
|
|
String fileName = "foo";
|
|
if (Path.of(fileName<caret>).isAbsolute()) return false;
|
|
System.out.println(fileName);
|
|
return Files.isDirectory(Path.of(fileName));
|
|
}
|
|
} |