InvalidFolderException
Thrown when there is an attempt to represent a node as folder when it is actually not a folder.
164165166167168169170171172173174
throw new FolderNotFoundException(folderFile.getAbsolutePath()+" does not exist."); } if(!folderFile.isDirectory()) { throw new InvalidFolderException(folderFile.getAbsolutePath()+" is not a valid directory."); } // cleanup trailing separators if (!path.equals(Folder.PATH_SEPARATOR) && path.endsWith(Folder.PATH_SEPARATOR)) {
563564565566567568569570571572573
throws FolderNotFoundException, InvalidFolderException, NodeException { // path must be valid absolute path if ((path == null) || ! path.startsWith(Folder.PATH_SEPARATOR)) { throw new InvalidFolderException( "Invalid path specified " + path ); } // traverse folders and parse path from root, // accumualting matches in node set Folder folder = getFolder(Folder.PATH_SEPARATOR);
168169170171172173174175176177178
567568569570571572573574575576577
167168169170171172173174175176177
165166167168169170171172173174175
484485486487488489490491492493494
153154155156157158159160161162163
throw new FolderNotFoundException(folderFile.getAbsolutePath()+" does not exist."); } if(!folderFile.isDirectory()) { throw new InvalidFolderException(folderFile.getAbsolutePath()+" is not a valid directory."); } if (fromCache) {
339340341342343344345346347348349