You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Pei He (JIRA)" <ji...@apache.org> on 2016/11/22 23:36:00 UTC

[jira] [Updated] (BEAM-1041) IOChannelFactory: supports for recursively remove().

     [ https://issues.apache.org/jira/browse/BEAM-1041?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pei He updated BEAM-1041:
-------------------------
    Summary: IOChannelFactory: supports for recursively remove().  (was: IOChannelFactory: supports for recursively remove.)

> IOChannelFactory: supports for recursively remove().
> ----------------------------------------------------
>
>                 Key: BEAM-1041
>                 URL: https://issues.apache.org/jira/browse/BEAM-1041
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-java-core
>            Reporter: Pei He
>
> 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().



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)