Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

Repository object emitter - notify done #6

Open
marcolarosa opened this issue Mar 2, 2022 · 1 comment
Open

Repository object emitter - notify done #6

marcolarosa opened this issue Mar 2, 2022 · 1 comment

Comments

@marcolarosa
Copy link
Contributor

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
Copy link
Contributor

moisbo commented Apr 8, 2022

Hi Marco -- please check #10

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants