checkName(name);
if (!parent.isFolder()) {
throw new ForbiddenException("Unable create new file. Item specified as parent is not a folder. ");
}
final Path newPath = parent.getVirtualFilePath().newPath(name);
<BUG>if (!VirtualFileDefaults.isPathIgnored(newPath)) {
if (!hasPermission(parent, BasicPermissions.WRITE.value(), true)) {</BUG>
throw new ForbiddenException(String.format("Unable create new file in '%s'. Operation not permitted. ", parent.getPath()));
}
}

checkName(name);
if (!parent.isFolder()) {
throw new ForbiddenException("Unable create new file. Item specified as parent is not a folder. ");
}
final Path newPath = parent.getVirtualFilePath().newPath(name);
if (systemFilter.accept(workspaceId, newPath)) {
if (!hasPermission(parent, BasicPermissions.WRITE.value(), true)) {
throw new ForbiddenException(String.format("Unable create new file in '%s'. Operation not permitted. ", parent.getPath()));
}
}
