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