[
https://issues.apache.org/jira/browse/BEAM-4843?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Luke Cwik resolved BEAM-4843.
-----------------------------
Resolution: Fixed
Fix Version/s: 2.7.0
> Incorrect docs on FileSystems.delete
> ------------------------------------
>
> Key: BEAM-4843
> URL: https://issues.apache.org/jira/browse/BEAM-4843
> Project: Beam
> Issue Type: Bug
> Components: sdk-java-core
> Affects Versions: 2.6.0
> Reporter: Ryan Williams
> Assignee: Ryan Williams
> Priority: Minor
> Fix For: 2.7.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> [The docs on {{FileSystems.delete}}
> say|https://github.com/apache/beam/blob/b5e8335d982ee69d9f788f65f27356cddd5293d1/sdks/java/core/src/main/java/org/apache/beam/sdk/io/FileSystems.java#L332-L333]:
> bq. It is allowed but not recommended to delete directories recursively.
> Callers depends on {@link FileSystems} and uses {@code DeleteOptions}.
> However, the function actually takes a {{MoveOptions...}} param, there's
> never been a {{DeleteOptions}} afaict, and there is no way to recursively
> delete a {{ResourceId}}.
> The docs should be fixed, at a minimum; actually supporting recursive delete
> would also be nice.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)