Creates a file creation operation. # Arguments `trunk_id` - The trunk ID for the new file `path` - The file path `encoding` - Optional text encoding (None for binary files)
(trunk_id: TrunkId, path: String, encoding: Option<Encoding>)
| 130 | /// * `path` - The file path |
| 131 | /// * `encoding` - Optional text encoding (None for binary files) |
| 132 | pub fn create(trunk_id: TrunkId, path: String, encoding: Option<Encoding>) -> Self { |
| 133 | Self { |
| 134 | trunk_id, |
| 135 | path: path.clone(), |
| 136 | trunk_op: Some(TrunkOp::Create { path, encoding }), |
| 137 | line_ops: Vec::new(), |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | /// Creates a file deletion operation. |
| 142 | pub fn delete(trunk_id: TrunkId, path: String) -> Self { |
no test coverage detected