Details
-
Sub-task
-
Status: Open
-
P3
-
Resolution: Unresolved
-
None
-
None
Description
1. FileIOChannelFactory:
Maybe using deleteDirectory() as suggested in here:
http://stackoverflow.com/questions/779519/delete-directories-recursively-in-java
2. GcsIOChannelFactory:
Since gcs doesn't have directories, remove recursively means remove all files whose prefixes match.
However, there are two issues to consider:
First. remove("gs://mybucket/directory-to-remove")
a. it should remove "gs://mybucket/directory-to-remove/my-file".
b. it should not remove "gs://mybucket/directory-to-remove-my-file".
Second, there should be a way to skip the prefix match for remove(collection-of-a-thousand-files), perhaps by adding a recursive boolean parameter to remove().