class DropboxFindFeature implements Find {

    @Override
    public boolean find(final Path file) throws BackgroundException {
        if(file.isRoot()) {
            return true;
        }
        try {
            return new DropboxAttributesFinderFeature(session).find(file) != PathAttributes.EMPTY;
        }
        catch(NotfoundException e) {
            return false;
        }
    }

    public  DropboxFindFeature(final DropboxSession session);

}