VFS vfs = VFSManager.getVFSForPath(path);
VFS.DirectoryEntry[] selected = getSelectedFiles(); String parent; if(selected.length == 0) parent = path; else if(selected[0].type == VFS.DirectoryEntry.FILE) { parent = selected[0].path; parent = VFSManager.getVFSForPath(parent) .getParentOfPath(parent); } else parent = selected[0].path;  VFS vfs = VFSManager.getVFSForPath(parent);
	public void mkdir()	{		String newDirectory = GUIUtilities.input(this,"vfs.browser.mkdir",null);		if(newDirectory == null)			return;		VFS vfs = VFSManager.getVFSForPath(path);		// path is the currently viewed directory in the browser		newDirectory = vfs.constructPath(path,newDirectory);		Object session = vfs.createVFSSession(newDirectory,this);		if(session == null)			return;		if(!startRequest())			return;		VFSManager.runInWorkThread(new BrowserIORequest(			BrowserIORequest.MKDIR,this,			session,vfs,newDirectory,null));	}