Skip to content

Commit ac1d078

Browse files
committed
Documentation.
1 parent e4d2ed9 commit ac1d078

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

googlestorage/src/main/java/ch/cyberduck/core/googlestorage/GoogleStorageObjectListService.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,16 @@ protected AttributedList<Path> list(final Path directory, final ListProgressList
193193
}
194194
}
195195

196+
/**
197+
* Determine path from prefix. Path will have duplicate marker set in attributes when all containing files for the
198+
* prefix have a delete marker set.
199+
*
200+
* @param pool Thread pool to run task with
201+
* @param bucket Bucket
202+
* @param directory The directory for which contents are listed
203+
* @param prefix URI decoded common prefix found in directory
204+
* @return Path to add to directory list
205+
*/
196206
private Future<Path> submit(final ThreadPool pool, final Path bucket, final Path directory, final String prefix) {
197207
return pool.execute(new BackgroundExceptionCallable<Path>() {
198208
@Override

s3/src/main/java/ch/cyberduck/core/s3/S3VersionedObjectListService.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,16 @@ public AttributedList<Path> list(final Path directory, final ListProgressListene
211211
}
212212
}
213213

214+
/**
215+
* Determine path from prefix. Path will have duplicate marker set in attributes when all containing files for the
216+
* prefix have a delete marker set.
217+
*
218+
* @param pool Thread pool to run task with
219+
* @param bucket Bucket
220+
* @param directory The directory for which contents are listed
221+
* @param prefix URI decoded common prefix found in directory
222+
* @return Path to add to directory list
223+
*/
214224
private Future<Path> submit(final ThreadPool pool, final Path bucket, final Path directory, final String prefix) {
215225
return pool.execute(new BackgroundExceptionCallable<Path>() {
216226
@Override
@@ -230,7 +240,7 @@ public Path call() throws BackgroundException {
230240
attr.setCustom(ImmutableMap.of(KEY_DELETE_MARKER, Boolean.TRUE.toString()));
231241
}
232242
}
233-
// no placeholder but objects inside - need to check if all of them are deleted
243+
// No placeholder but objects inside; need to check if all of them are deleted
234244
final StorageObjectsChunk unversioned = session.getClient().listObjectsChunked(
235245
bucket.isRoot() ? StringUtils.EMPTY : bucket.getName(), prefix,
236246
null, 1, null, false);

0 commit comments

Comments
 (0)