This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
import org.openide.filesystems.FileChangeListener;
import org.openide.filesystems.FileLock;
import org.openide.filesystems.FileObject;
import org.openide.filesystems.FileUtil;
import org.openide.util.Exceptions;
import org.openide.util.Mutex;
}
File file = new File(getFileName().getFile(), relativePath);
if (relativePath.contains("..")) {
try {
file = FileUtil.normalizeFile(file);
file = file.getCanonicalFile();
} catch (IOException ex) {
LOG.log(Level.WARNING, "Cannot canonicalize " + file, ex);
FileObjectFactory factory = getFactory();