You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Ryan Williams (JIRA)" <ji...@apache.org> on 2018/07/22 20:59:00 UTC
[jira] [Created] (BEAM-4843) Incorrect docs on FileSystems.delete
Ryan Williams created BEAM-4843:
-----------------------------------
Summary: 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
[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)