CoEDL / ocfl-js

A library to work with OCFL repositories and objects
0 stars 3 forks source link

Repository object emitter - notify done #6

Open marcolarosa opened 2 years ago

marcolarosa commented 2 years ago

in the filesystem method:

https://github.com/CoEDL/ocfl-js/blob/master/lib/repository.js#L176-L202

In this method (filesystem), at the end of the for loop (line 181 for (let d of dirs)), if root === this.ocflRoot then emit done:

this.emit('done')

In the S3 method emit done when walk = false (https://github.com/CoEDL/ocfl-js/blob/master/lib/repository.js#L218)

moisbo commented 2 years ago

Hi Marco -- please check https://github.com/CoEDL/ocfl-js/pull/10