Add function to get full directories in batch
It will be used by the scrubber (as part of swh-scrubber#4685 (closed)) and the vault
Staging instance, all changes can be removed at any time
It will be used by the scrubber (as part of swh-scrubber#4685 (closed)) and the vault