VirtualFile (@NotNull VirtualFile parent, @NotNull String name, boolean isDirectory) { String parentPath = parent.getPath(); boolean hasEndSlash = parentPath.charAt(parentPath.length() - 1) == '/'; return getRemoteFileManager().getOrCreateFile((HttpVirtualFileImpl)parent, Urls.newFromIdea(parent.getUrl() + (hasEndSlash ? "" : '/') + name), parentPath + (hasEndSlash ? "" : '/') + name, isDirectory); }