mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
FileUtil: calculate relative path using parent file as a base for "special" files like pipes, FIFos, devices etc
This commit is contained in:
@@ -238,7 +238,7 @@ public class FileUtilRt {
|
||||
public static String getRelativePath(File base, File file) {
|
||||
if (base == null || file == null) return null;
|
||||
|
||||
if (base.isFile()) {
|
||||
if (base.exists() && !base.isDirectory()) {
|
||||
base = base.getParentFile();
|
||||
if (base == null) return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user