vertx / io.vertx.reactivex.core.file / FileSystem / rxTruncate

rxTruncate

open fun rxTruncate(path: String, len: Long): Completable

Truncate the file represented by path to length len in bytes, asynchronously.

The operation will fail if the file does not exist or len is less than zero.

Parameters

path - the path to the file

len - the length to truncate it to

Return