-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The `iroh::util::fs::path_to_key` method will properly format paths and turn them into keys that we can use when working between the filesystem and a doc. It will specifically do these three things: - remove any `root` dir that you want it to remove - add any `prefix` you provide - append the null byte `\0` to the end of the key, to prevent any unexpected overwrites that may occur when you set entries on a document.
- Loading branch information
Showing
2 changed files
with
107 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters