@Override
    public boolean find(final Path file, final ListProgressListener listener) throws BackgroundException {
        if(file.isRoot()) {
            return true;
        }
        try {
            return new DropboxAttributesFinderFeature(session).find(file, listener) != PathAttributes.EMPTY;
        }
        catch(NotfoundException e) {
            return false;
        }
    }
@Test
    public void testFindDirectory() throws Exception {
        final Path folder = new DropboxDirectoryFeature(session).mkdir(
                new Path(new DefaultHomeFinderService(session).find(), new AlphanumericRandomStringService().random(), EnumSet.of(Path.Type.directory)), new TransferStatus());
        assertTrue(new DropboxFindFeature(session).find(folder));
        assertFalse(new DropboxFindFeature(session).find(new Path(folder.getAbsolute(), EnumSet.of(Path.Type.file))));
        new DropboxDeleteFeature(session).delete(Collections.singletonList(folder), new DisabledLoginCallback(), new Delete.DisabledCallback());
    }