cryptomator / cryptomator/cryptofs

Deduplicate pathToVault.resolve("d").resolve("xx").resolve("yyyyyy...y")

Open
#100 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
109
Forks
37
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.