touch() public method

If the file does not exist, it will be created.
public touch ( string $filename, integer $time = null, integer $atime = null ) : boolean
$filename string
$time integer
$atime integer
return boolean
 /**
  * {@inheritdoc}
  */
 public function createFile($remoteFilename, $fileMode = 0770)
 {
     if ($this->isConnected()) {
         return $this->connection->touch($remoteFilename) && $this->changePermissions($remoteFilename, $fileMode);
     }
     return false;
 }