This commit is contained in:
crschnick 2024-05-14 08:23:22 +00:00
parent 69dd83e2e4
commit a09a3238cf

View file

@ -89,7 +89,7 @@ public class ContextualFileReference {
public String serialize() {
var start = getDataDir();
var normalizedPath = normalized(path);
if (normalizedPath.startsWith(start)) {
if (normalizedPath.startsWith(start) && !normalizedPath.equals(start)) {
return "<DATA>" + "/" + FileNames.relativize(start, normalizedPath);
}
return path;