agave-systems/systems-core/src/main/java/org/iplantc/service/transfer/sftp/MaverickSFTP.java
/**
     * Determine if a resolved path exists without throwing exceptions.
     * If the path exists, true is returned.  If the path does not exist
     * or if the command fails for any reason, false is returned.
     *
     * @param resolvedPath a fully resolved pathname
     * @return true if there's positive confirmation that the path represents
     * an existing object, false otherwise.
     */
Determine if a resolved path exists without throwing exceptions.
If the path exists, true is returned.  If the path does not exist
or if the command fails for any reason, false is returned.

@param resolvedPath a fully resolved pathname
@return true if there's positive confirmation that the path represents
an existing object, false otherwise.
Determine if a resolved path exists without throwing exceptions . If the path exists true is returned . If the path does not exist or if the command fails for any reason false is returned . @param resolvedPath a fully resolved pathname @return true if there ' s positive confirmation that the path represents an existing object false otherwise .
private boolean doesExistSafe(String resolvedPath) {
        if (resolvedPath == null) return false;
        SftpFileAttributes atts = null;
        try {
            atts = stat(resolvedPath);
        } catch (Exception ignore) {}
        return (atts != null);
    }
private boolean doesExistSafe ( String resolvedPath ) { if ( resolvedPath == null ) return false ; SftpFileAttributes atts = null ; try { atts = stat ( resolvedPath ) ; } catch ( Exception ignore ) { } return ( atts != null ) ; }
Determine if a resolved path exists without throwing exceptions.
Determine if a resolved path exists without throwing exceptions .
// Is it worth trying? // See if we get any attributes back.