8000 [NIO] Files.walkFileTree doesn't visit files · Issue #1519 · googleapis/google-cloud-java · GitHub
[go: up one dir, main page]

Skip to content

[NIO] Files.walkFileTree doesn't visit files #1519

@tomwhite

Description

@tomwhite

There are a couple of problems running this code for deleting a directory recursively: https://github.com/HadoopGenomics/Hadoop-BAM/blob/master/src/main/java/org/seqdoop/hadoop_bam/util/NIOFileUtil.java#L63-L74

  1. The code for visitFile is never called.
  2. Files.delete(dir) fails with "Can't perform I/O on pseudo-directories (trailing slash)"

It would be good to add tests for Files.walkFileTree (and Files.walk) to the unit tests.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0