Back to Pocketbase

Function truncate

static/jsvm/functions/_os.truncate.html

latest544 B
Original Source

Function truncate

  • truncate(name, size): void

Truncate changes the size of the named file. If the file is a symbolic link, it changes the size of the link's target. If there is an error, it will be of type *PathError.

Parameters

name: string
size: number

Returns void

Settings

Member Visibility

  • Inherited

Theme

OSLightDark

Generated using TypeDoc