beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pei He (JIRA)" <>
Subject [jira] [Created] (BEAM-1041) IOChannelFactory: supports for recursively remove.
Date Tue, 22 Nov 2016 23:34:59 GMT
Pei He created BEAM-1041:

             Summary: IOChannelFactory: supports for recursively remove.
                 Key: BEAM-1041
             Project: Beam
          Issue Type: Bug
          Components: sdk-java-core
            Reporter: Pei He
            Assignee: Davor Bonaci

1. FileIOChannelFactory:
Maybe using deleteDirectory() as suggested in here:

2. GcsIOChannelFactory:
Since gcs doesn't have directories, remove recursively means remove all files whose prefixes

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().

This message was sent by Atlassian JIRA

View raw message