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

rxTruncate

open fun rxTruncate(path: String, len: Long): Single<Void>

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