mirror of
https://github.com/openai/codex.git
synced 2026-11-01 19:33:35 +00:00
feat: load ExecPolicyManager from ConfigLayerStack
This commit is contained in:
@@ -43,6 +43,13 @@ impl AbsolutePathBuf {
|
||||
Self::resolve_path_against_base(path, &self.0)
|
||||
}
|
||||
|
||||
pub fn parent(&self) -> Option<Self> {
|
||||
self.0.parent().map(|p| {
|
||||
#[expect(clippy::expect_used)]
|
||||
Self::from_absolute_path(p).expect("parent of AbsolutePathBuf must be absolute")
|
||||
})
|
||||
}
|
||||
|
||||
pub fn as_path(&self) -> &Path {
|
||||
&self.0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user