mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-6063 (don't mix paths and URLs)
This commit is contained in:
@@ -243,9 +243,10 @@ public class ContentEntryImpl extends RootModelComponentBase implements ContentE
|
||||
}
|
||||
|
||||
private void assertFolderUnderMe(@NotNull String url) {
|
||||
final String rootUrl = getUrl();
|
||||
if (!FileUtil.isAncestor(rootUrl, url, false)) {
|
||||
LOG.error("The file " + url + " is not under content entry root " + rootUrl);
|
||||
final String path = VfsUtil.urlToPath(url);
|
||||
final String rootPath = VfsUtil.urlToPath(getUrl());
|
||||
if (!FileUtil.isAncestor(rootPath, path, false)) {
|
||||
LOG.error("The file '" + path + "' is not under content entry root '" + rootPath + "'");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user