< T extends INode > T addNode ( String path , T newNode , boolean inheritPermission ) throws FileNotFoundException { byte [ ] [ ] pathComponents = getPathComponents ( path ) ; if ( addToParent ( pathComponents , newNode , inheritPermission , true ) == null ) return null ; return newNode ; }
Add new INode to the file tree . Find the parent and insert