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:

ParameterTypeDescription
realPathstringFile path.
ctimenumberCreation time in milliseconds.
mtimenumberModification time in milliseconds.

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