truncateAsync

external fun truncateAsync(path: PathLike, len: Number = definedExternally): Promise<Void>(source)

Truncates (shortens or extends the length) of the content at path to len bytes.

Since

v10.0.0

Return

Fulfills with undefined upon success.

Parameters

len=0