@Override
    public boolean isSupported(final Path file, final Type type) {
        switch(type) {
            case upload:
                return file.isDirectory();
        }
        return true;
    }
@Test
    public void testIsSupported() throws Exception {
        final Path home = new NextcloudHomeFeature(session.getHost()).find();
        assertTrue(new NextcloudShareFeature(session).isSupported(home, Share.Type.download));
        assertTrue(new NextcloudShareFeature(session).isSupported(home, Share.Type.upload));
    }