mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-06 01:43:57 +07:00
GitOrigin-RevId: 2bf3977d2873bd133ac6acb85df54aece740f428
12 lines
278 B
Java
12 lines
278 B
Java
import java.io.*;
|
|
import java.nio.file.*;
|
|
|
|
class C {
|
|
public boolean isRelativeDirectory() {
|
|
String fileName = "foo";
|
|
Path path = Path.of(fileName);
|
|
if (path.isAbsolute()) return false;
|
|
System.out.println(fileName);
|
|
return Files.isDirectory(path);
|
|
}
|
|
} |