The expression pathToVault.resolve(Constants.DATA_DIR_NAME).resolve(dirHash.substring(0, 2)).resolve(dirHash.substring(2)) (or similar) is used in several places in this project. We should find a (clean!) way to deduplicate this (possibly including the dirHash calculation).
By "clean", I mean not just a new util class. Maybe we find some existing place, that can be injected (or is already present) in all required places.
The expression
pathToVault.resolve(Constants.DATA_DIR_NAME).resolve(dirHash.substring(0, 2)).resolve(dirHash.substring(2))
(or similar) is used in several places in this project. We should find a (clean!) way to deduplicate this (possibly including thedirHash
calculation).By "clean", I mean not just a new util class. Maybe we find some existing place, that can be injected (or is already present) in all required places.