Skip to content

CapacitorAdapterFs.setTimes method

CapacitorAdapterFs › setTimes

Unofficial

Set the creation and modification times for a file.

Signature:

setTimes(realPath: string, ctime: number, mtime: number): Promise<void>

Parameters:

Parameter Type Description
realPath string File path.
ctime number Creation time in milliseconds.
mtime number Modification time in milliseconds.

Returns: Promise<void>A promise that resolves when the times are set.