Skip to content

Commit e835d0d

Browse files
committed
doc truncate
1 parent 5afb84b commit e835d0d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ Read a buffer at a specific offset. Callback is called with the buffer read.
5959

6060
#### `file.del(offset, length, callback)`
6161

62-
Delete a portion of the file. If deleting from the offset to the end of the file, the file is truncated at the offset. Otherwise, any partial file blocks in the deleted portion are zeroed and, if the file is sparse, the remaining file blocks unlinked.
62+
Delete a portion of the file. Any partial file blocks in the deleted portion are zeroed and, if the file is sparse, the remaining file blocks unlinked in-place.
63+
64+
#### `file.truncate(offset, callback)`
65+
66+
Truncate the file length to this offset.
6367

6468
#### `file.stat(callback)`
6569

0 commit comments

Comments
 (0)