class SFTPFindFeature implements Find {

    @Override
    public boolean find(final Path file) throws BackgroundException {
        if(file.isRoot()) {
            return true;
        }
        try {
            new SFTPAttributesFinderFeature(session).find(file);
            return true;
        }
        catch(NotfoundException e) {
            // We expect SSH_FXP_STATUS if the file is not found
            return false;
        }
    }

    public  SFTPFindFeature(final SFTPSession session);

}