* Truncates (or extends) the file to reach the specified `len`. If `len` is * not specified, then the entire file contents are truncated. * * @example Truncate the entire file * ```ts ignore * import { open } from "@std/fs/unstable-open"; * using file = await open("my_file.txt", {
(len?: number)
| 477 | * ``` |
| 478 | */ |
| 479 | truncate(len?: number): Promise<void>; |
| 480 | /** |
| 481 | * Synchronously truncates (or extends) the file to reach the specified `len`. |
| 482 | * If `len` is not specified, then the entire file contents are truncated. |
no outgoing calls
no test coverage detected