The pointer at `dir`, if `dir` holds a remote one.
(dir: &Path)
| 132 | impl RemoteSandboxPointer { |
| 133 | /// The pointer at `dir`, if `dir` holds a remote one. |
| 134 | pub fn read(dir: &Path) -> Option<Self> { |
| 135 | let bytes = std::fs::read(dir.join(SANDBOX_POINTER)).ok()?; |
| 136 | serde_json::from_slice(&bytes).ok() |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | /// Write `pointer` as `dir`'s [`SANDBOX_POINTER`], mode 0600 (it carries a |