MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / config_dir

Method config_dir

src/project_config/discover.rs:66–72  ·  view source on GitHub ↗

Returns the directory containing the config file.

(&self)

Source from the content-addressed store, hash-verified

64
65 /// Returns the directory containing the config file.
66 pub fn config_dir(&self) -> Option<PathBuf> {
67 let canonical_path = self
68 .path
69 .canonicalize()
70 .unwrap_or_else(|_| self.path.clone());
71 canonical_path.parent().map(|p| p.to_path_buf())
72 }
73
74 /// Get list of directories to search for config files
75 ///

Callers 1

runFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected