src/FileSystem/FileHandler.php
public function forceCreate(): bool {
        if (!$this->isFile()) {
            return \mkdir($this->path, 0744, true);
        }
        if ($this->isFile() && !$this->isWritable()) {
            $user = \get_current_user();
            return \chown($this->path, $user);
        }
        return false;
    }
public function forceCreate(): bool {
        if (!$this->isFile()) {
            return \mkdir($this->path, 0744, true);
        }
        if ($this->isFile() && !$this->isWritable()) {
            $user = \get_current_user();
            return \chown($this->path, $user);
        }
        return false;
    }
public function forceCreate ( ) : bool { if ( ! $ this -> isFile ( ) ) { return \ mkdir ( $ this -> path , 0744 , true ) ; } if ( $ this -> isFile ( ) && ! $ this -> isWritable ( ) ) { $ user = \ get_current_user ( ) ; return \ chown ( $ this -> path , $ user ) ; } return false ; }
forces a file creation

@return bool
@deprecated Use create() instead
forces a file creation