Symfony\Component\Filesystem\Filesystem::touch
Sets access and modification time of file.
Signature
public function touch(Traversable
$files,
[integer
$time = null,
[integer
$atime = null]] )
Parameters
$files
— object- A filename, an array of files, or a \Traversable instance to create
$time
— integer- The touch time as a unix timestamp
$atime
— integer- The access time as a unix timestamp
Errors/Exceptions
-
IOException
- When touch fails