@Override public boolean isDirectory() { return entry.isType(DIRECTORY); }
@Override public boolean isSymbolicLink() { return entry.isType(SYMLINK); }
@Override public boolean isOther() { return entry.isType(SPECIAL); }
@Override public boolean isRegularFile() { return entry.isType(FILE); }
/** * Similar to its super class implementation, but returns * {@code false} for a valid archive file, too. * <p> * For archive file validation its virtual file system gets mounted. * In case a RAES encrypted ZIP file gets mounted, the user gets prompted * for its password unless the default configuration for key management * hasn't been overridden. * * @see <a href="#falsePositives">Detecting Archive Paths and False Positives</a> */ @Override public boolean isFile() { if (null != innerArchive) { try { FsEntry entry = innerArchive.getController() .getEntry(getInnerFsEntryName()); return null != entry && entry.isType(FILE); } catch (IOException ex) { return false; } } return file.isFile(); }
/** * Similar to its super class implementation, but returns * {@code true} for a valid archive file, too. * <p> * For archive file validation its virtual file system gets mounted. * In case a RAES encrypted ZIP file gets mounted, the user gets prompted * for its password unless the default configuration for key management * hasn't been overridden. * * @see <a href="#falsePositives">Detecting Archive Paths and False Positives</a> * @see #isArchive * @see #isEntry */ @Override public boolean isDirectory() { if (null != innerArchive) { try { FsEntry entry = innerArchive.getController() .getEntry(getInnerFsEntryName()); return null != entry && entry.isType(DIRECTORY); } catch (IOException ex) { return false; } } return file.isDirectory(); }
} catch (IOException ex) { final FsEntry entry = controller.getEntry(innerEntryName); if (null == entry || !entry.isType(DIRECTORY)) throw ex;
if (null == srcEntry) throw new NoSuchFileException(src.toString()); if (!srcEntry.isType(FILE)) throw new FileSystemException(src.toString(), null, "Expected type FILE, but is " + BitField.copyOf(srcEntry.getTypes()) + "!"); if (o.get(EXCLUSIVE)) throw new FileAlreadyExistsException(dst.toString()); if (dstEntry.isType(DIRECTORY)) { try {