@Test(expected = NotfoundException.class) public void testListNotFoundFolderMinio() throws Exception { final Host host = new Host(new S3Protocol(), "play.minio.io", 9000, new Credentials( "Q3AM3UQ867SPQQA43P2F", "zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG" )); final S3Session session = new S3Session(host); final LoginConnectionService login = new LoginConnectionService(new DisabledLoginCallback(), new DisabledHostKeyCallback(), new DisabledPasswordStore(), new DisabledProgressListener()); login.check(session, PathCache.empty(), new DisabledCancelCallback()); final Path directory = new S3DirectoryFeature(session, new S3WriteFeature(session)).mkdir( new Path(new S3HomeFinderService(session).find(), new AsciiRandomStringService().random(), EnumSet.of(Path.Type.directory, Path.Type.volume)), null, new TransferStatus()); try { new S3ObjectListService(session).list(new Path(directory, "notfound", EnumSet.of(Path.Type.directory)), new DisabledListProgressListener()); } finally { new S3DefaultDeleteFeature(session).delete(Collections.singletonList(directory), new DisabledLoginCallback(), new Delete.DisabledCallback()); } }
@Override public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException { return this.list(directory, listener, String.valueOf(Path.DELIMITER)); }
S3ObjectListService extends S3AbstractListService implements ListService { @Override public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException { return this.list(directory, listener, String.valueOf(Path.DELIMITER)); } }
S3ObjectListService extends S3AbstractListService implements ListService { @Override public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException { return this.list(directory, listener, String.valueOf(Path.DELIMITER)); } S3ObjectListService(final S3Session session); }
S3ObjectListService extends S3AbstractListService implements ListService { @Override public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException { return this.list(directory, listener, String.valueOf(Path.DELIMITER)); } S3ObjectListService(final S3Session session); @Override ListService withCache(final Cache<Path> cache); @Override AttributedList<Path> list(final Path directory, final ListProgressListener listener); AttributedList<Path> list(final Path directory, final ListProgressListener listener, final String delimiter); AttributedList<Path> list(final Path directory, final ListProgressListener listener, final String delimiter, final int chunksize); }
S3ObjectListService extends S3AbstractListService implements ListService { @Override public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException { return this.list(directory, listener, String.valueOf(Path.DELIMITER)); } S3ObjectListService(final S3Session session); @Override ListService withCache(final Cache<Path> cache); @Override AttributedList<Path> list(final Path directory, final ListProgressListener listener); AttributedList<Path> list(final Path directory, final ListProgressListener listener, final String delimiter); AttributedList<Path> list(final Path directory, final ListProgressListener listener, final String delimiter, final int chunksize);  }