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.
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
, wherefile.txt
is a duplicate of a file already in the object, would result in the empty directoriesa/b
being left in the version.This PR fixes the problem.