(&self, os: &Os)
| 89 | |
| 90 | impl FsWrite { |
| 91 | pub fn path(&self, os: &Os) -> PathBuf { |
| 92 | sanitize_path_tool_arg(os, match self { |
| 93 | FsWrite::Create { path, .. } => path.as_str(), |
| 94 | FsWrite::StrReplace { path, .. } => path.as_str(), |
| 95 | FsWrite::Insert { path, .. } => path.as_str(), |
| 96 | FsWrite::Append { path, .. } => path.as_str(), |
| 97 | }) |
| 98 | } |
| 99 | |
| 100 | pub async fn invoke( |
| 101 | &self, |