final FSEntry parent = getEntry(file.getParentFile());
final FSEntry parent = getEntry(file.getAbsoluteFile().getParentFile());
	public VMFileHandle open(File file, VMOpenMode mode) throws IOException {		FSEntry entry = getEntry(file);		if ((entry != null) && !entry.isFile()) {			throw new IOException("Not a file " + file);		}		if (entry == null) {			if (mode.canWrite()) {				// Try to create the file				final FSEntry parent = getEntry(file.getParentFile());				if (parent == null) {					throw new IOException(						"Cannot create " + file.getAbsolutePath() + ", parent directory does not exist");				}				if (!parent.isDirectory()) {					throw new IOException("Cannot create " + file.getAbsolutePath() + ", parent is not a directory");				}				// Ok, add the file				entry = parent.getDirectory().addFile(file.getName());			} else {				throw new FileNotFoundException(file.getAbsolutePath());			}		}		return fhm.open(entry.getFile(), mode);	}