You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
filepath: string - Sparse file paths to create/resize
size: number - Sparse file size
options?.safe: boolean - Safe mode, default: true
options?.mode: number - File mode. By default, the mode is only set when creating a file, unless overwriteMode is specified. default: 0o644
options?.overwriteMode: boolean - Overwrite mode. When the overwrite mode is allowed, the mode will be set even if the file exists. default: false
In safe mode, an error will occur if the size is less than 0 or greater thanNumber.MAX_SAFE_INTEGER. Additionally, it will be rejected if the passed size is larger than the current file size.
In non-safe mode, a size less than 0 will be reset to 0, and a size greater thanNumber.MAX_SAFE_INTEGER will be reset toNumber.MAX_SAFE_INTEGER.