klyn.io.Path.touch
method
public native touch() as Void throws IOException
Description

Creates a file when missing or updates its modification date.

This operation is valid on file paths (existing or future file paths). If the path points to a directory, an IOException is thrown.

Throws
  • IOException if the resource is closed, inaccessible, not a valid file, or the underlying I/O operation fails.