The `touch` function in the PHP `oc.files` filesystem library is used to change the modification and access time of a file or create a new file if it doesn't already exist.
Example 1: In this example, we will create a new file called 'example.txt' and set its modification time to the current time.
Example 2: In this example, we will change the modification time of an existing file called 'example.txt' to a specific date and time.
The `oc.files` filesystem library is a part of the Nextcloud server and is used for accessing and managing files stored on the server.
PHP OC\Files Filesystem::touch - 17 examples found. These are the top rated real world PHP examples of OC\Files\Filesystem::touch extracted from open source projects. You can rate examples to help us improve the quality of examples.