Removes a range from the file and closes the gap.
impl File {
fn collapse<R>(&self, range: R) -> Result<(), Errno>
where R: BoundedRange<u64>,
}| Name | Description |
|---|---|
| range | The range that should be removed. |
The range must probably begin and end at a multiple of the block size but this depends on the filesystem. This function cannot be used if the range reaches the end of the file. Use set_len for this purpose.