src/File.php
public function touch()
    {
        // Check permissions
        $path = $this->getFullPath();
        if (file_exists($path))
        {
            if (!is_writable($path))
                Path::makeWritable($path);
        }

        touch($path);
        Path::setPermissions($path);
    }
public function touch()
    {
        // Check permissions
        $path = $this->getFullPath();
        if (file_exists($path))
        {
            if (!is_writable($path))
                Path::makeWritable($path);
        }

        touch($path);
        Path::setPermissions($path);
    }
public function touch ( ) { // Check permissions $ path = $ this -> getFullPath ( ) ; if ( file_exists ( $ path ) ) { if ( ! is_writable ( $ path ) ) Path :: makeWritable ( $ path ) ; } touch ( $ path ) ; Path :: setPermissions ( $ path ) ; }
Touch the file, updating its permissions
Touch the file updating its permissions