/** * create a new DirectoryEntry * * @param name the name of the new DirectoryEntry * * @return the new DirectoryEntry * * @exception IOException if the directory can't be created */ public DirectoryEntry createDirectory(final String name) throws IOException { DirectoryProperty property = new DirectoryProperty(name); DirectoryNode rval = new DirectoryNode(property, _nfilesystem, this); _nfilesystem.addDirectory(property); (( DirectoryProperty ) getProperty()).addChild(property); _entries.add(rval); _byname.put(name, rval); return rval; }
/** * create a new DirectoryEntry * * @param name the name of the new DirectoryEntry * * @return the new DirectoryEntry * * @exception IOException if the directory can't be created */ public DirectoryEntry createDirectory(final String name) throws IOException { DirectoryProperty property = new DirectoryProperty(name); DirectoryNode rval = new DirectoryNode(property, _nfilesystem, this); _nfilesystem.addDirectory(property); (( DirectoryProperty ) getProperty()).addChild(property); _entries.add(rval); _byname.put(name, rval); return rval; }
/** * create a new DirectoryEntry * * @param name the name of the new DirectoryEntry * * @return the new DirectoryEntry * * @exception IOException */ public DirectoryEntry createDirectory(final String name) throws IOException { DirectoryNode rval; DirectoryProperty property = new DirectoryProperty(name); if(_ofilesystem != null) { rval = new DirectoryNode(property, _ofilesystem, this); _ofilesystem.addDirectory(property); } else { rval = new DirectoryNode(property, _nfilesystem, this); _nfilesystem.addDirectory(property); } (( DirectoryProperty ) getProperty()).addChild(property); _entries.add(rval); _byname.put(name, rval); return rval; }
/** * create a new DirectoryEntry * * @param name the name of the new DirectoryEntry * * @return the new DirectoryEntry * * @exception IOException */ public DirectoryEntry createDirectory(final String name) throws IOException { DirectoryNode rval; DirectoryProperty property = new DirectoryProperty(name); if(_ofilesystem != null) { rval = new DirectoryNode(property, _ofilesystem, this); _ofilesystem.addDirectory(property); } else { rval = new DirectoryNode(property, _nfilesystem, this); _nfilesystem.addDirectory(property); } (( DirectoryProperty ) getProperty()).addChild(property); _entries.add(rval); _byname.put(name, rval); return rval; }