Resolve `directory_path` (a `/`-separated relative path) under the OPFS root, creating each segment. OPFS rejects directory names containing `/`, so a multi-segment path like `documents/ ` must be descended one segment at a time rather than passed whole.
(directory_path: &str)