Create ResourcePaths from catalog options.
(options: &Options)
| 46 | |
| 47 | /// Create ResourcePaths from catalog options. |
| 48 | pub fn for_catalog_properties(options: &Options) -> Self { |
| 49 | let prefix = options |
| 50 | .get(CatalogOptions::PREFIX) |
| 51 | .map(|s| s.as_str()) |
| 52 | .unwrap_or(""); |
| 53 | Self::new(prefix) |
| 54 | } |
| 55 | |
| 56 | /// Get the base path. |
| 57 | pub fn base_path(&self) -> &str { |