Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 296 Bytes

touch.md

File metadata and controls

13 lines (8 loc) · 296 Bytes

touch (function)

If the file at path exists, update its creation/modification timestamps.

Otherwise, create an empty file at that path.

  • @param path — The target path for the file.
declare function touch(path: string | Path): void;