Github user NicoK commented on the issue:
https://github.com/apache/flink/pull/5624
@StephanEwen unfortunately not, for example:
`org.apache.flink.runtime.fs.hdfs.HadoopFileSystem#create()` ->
`org.apache.hadoop.fs.FileSystem#create()` ->
`org.apache.hadoop.fs.s3a.S3AFileSystem#create()` and this (depending on the
Hadoop version, of course) may call this:
```
// get the status or throw an FNFE
status = getFileStatus(f);
// if the thread reaches here, there is something at the path
if (status.isDirectory()) {
...
```
---