@Test public void testListObjects() throws Exception { final Path container = new Path("test.cyberduck.ch", EnumSet.of(Path.Type.directory, Path.Type.volume)); final AttributedList<Path> list = new GoogleStorageObjectListService(session).list(container, new DisabledListProgressListener()); for(Path p : list) { assertEquals(container, p.getParent()); if(p.isFile()) { assertNotEquals(-1L, p.attributes().getModificationDate()); assertNotEquals(-1L, p.attributes().getSize()); assertNotNull(p.attributes().getETag()); assertNull(p.attributes().getVersionId()); assertFalse(p.attributes().isDuplicate()); } } }
@Override public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException { return this.list(directory, listener, String.valueOf(Path.DELIMITER), preferences.getInteger("googlestorage.listing.chunksize")); }
GoogleStorageObjectListService implements ListService { @Override public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException { return this.list(directory, listener, String.valueOf(Path.DELIMITER), preferences.getInteger("googlestorage.listing.chunksize")); } }
GoogleStorageObjectListService implements ListService { @Override public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException { return this.list(directory, listener, String.valueOf(Path.DELIMITER), preferences.getInteger("googlestorage.listing.chunksize")); } GoogleStorageObjectListService(final GoogleStorageSession session); }
GoogleStorageObjectListService implements ListService { @Override public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException { return this.list(directory, listener, String.valueOf(Path.DELIMITER), preferences.getInteger("googlestorage.listing.chunksize")); } GoogleStorageObjectListService(final GoogleStorageSession session); @Override AttributedList<Path> list(final Path directory, final ListProgressListener listener); AttributedList<Path> list(final Path directory, final ListProgressListener listener, final String delimiter, final int chunksize); @Override ListService withCache(final Cache<Path> cache); }
GoogleStorageObjectListService implements ListService { @Override public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException { return this.list(directory, listener, String.valueOf(Path.DELIMITER), preferences.getInteger("googlestorage.listing.chunksize")); } GoogleStorageObjectListService(final GoogleStorageSession session); @Override AttributedList<Path> list(final Path directory, final ListProgressListener listener); AttributedList<Path> list(final Path directory, final ListProgressListener listener, final String delimiter, final int chunksize); @Override ListService withCache(final Cache<Path> cache);  }