(&self, path: &WorkspacePath)
| 407 | } |
| 408 | |
| 409 | fn list_prefix_for(&self, path: &WorkspacePath) -> String { |
| 410 | if path.is_root() { |
| 411 | if self.prefix.is_empty() { |
| 412 | String::new() |
| 413 | } else { |
| 414 | format!("{}/", self.prefix) |
| 415 | } |
| 416 | } else if self.prefix.is_empty() { |
| 417 | format!("{}/", path.as_str()) |
| 418 | } else { |
| 419 | format!("{}/{}/", self.prefix, path.as_str()) |
| 420 | } |
| 421 | } |
| 422 | |
| 423 | /// Shared GET path used by both [`WorkspaceFileSystem::read_text`] and |
| 424 | /// [`WorkspaceFileSystemExt::read_text_with_version`]. |
no test coverage detected