PHPDaemon\FS\FileSystem::touch PHP Method

touch() public static method

touch()
public static touch ( string $path, integer $mtime, integer $atime = null, callable $cb = null, integer $pri = EIO_PRI_DEFAULT ) : resource | boolean
$path string Path
$mtime integer Last modification time
$atime integer Last access time
$cb callable Callback
$pri integer Priority
return resource | boolean
    public static function touch($path, $mtime, $atime = null, $cb = null, $pri = EIO_PRI_DEFAULT)
    {
        $cb = CallbackWrapper::forceWrap($cb);
        if (!FileSystem::$supported) {
            $r = touch($path, $mtime, $atime);
            if ($cb) {
                $cb($r);
            }
            return $r;
        }
        return eio_utime($path, $atime, $mtime, $pri, $cb, $path);
    }