[
https://issues.apache.org/jira/browse/FLINK-1640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17056776#comment-17056776
]
Fabian Hueske commented on FLINK-1640:
--------------------------------------
Oh, that's a fairly old issue ;-)
I guess I removed whitespaces to unify the paths.
I don't think that tailing whitespaces should be a problem.
Maybe you can just change this logic to remove leading whitespaces?
> FileOutputFormat writes to wrong path if path ends with '/'
> -----------------------------------------------------------
>
> Key: FLINK-1640
> URL: https://issues.apache.org/jira/browse/FLINK-1640
> Project: Flink
> Issue Type: Bug
> Components: API / Scala
> Affects Versions: 0.9, 0.8.1
> Reporter: Fabian Hueske
> Assignee: Fabian Hueske
> Priority: Major
> Fix For: 0.9, 0.8.2
>
>
> The FileOutputFormat duplicates the last directory of a path, if the path
> ends with a slash '/'.
> For example, if the output path is specified as {{/home/myuser/outputPath/}}
> the output is written to {{/home/myuser/outputPath/outputPath/}}.
> This bug was introduced by commit 8fc04e4da8a36866e10564205c3f900894f4f6e0
--
This message was sent by Atlassian Jira
(v8.3.4#803005)