OCFL / ocfl-java

A Java OCFL implementation
MIT License
18 stars 12 forks source link

fix bug that left empty directories in new versions #50

Closed pwinckles closed 2 years ago

pwinckles commented 2 years ago

There was a bug introduced in v1.3.0 where duplicate files either copied or streamed into nested paths would leave empty directories in the version content. For example, writing a/b/file.txt, where file.txt is a duplicate of a file already in the object, would result in the empty directories a/b being left in the version.

This PR fixes the problem.