public boolean isDirectoryOrLinkedDirectory ( SftpFile file ) throws SftpStatusException , SshException { return file . isDirectory ( ) || ( file . isLink ( ) && stat ( file . getAbsolutePath ( ) ) . isDirectory ( ) ) ; }
Determine whether the file object is pointing to a symbolic link that is pointing to a directory .