Pickles Framework Documentation

FileUtils
in package

Class FileUtils

A utility class that provides helper methods for file operations.

Table of Contents

Methods

ensureDirectoryExists()  : void
Ensures that the specified directory exists. If the directory does not exist, it attempts to create it, including any necessary parent directories.

Methods

ensureDirectoryExists()

Ensures that the specified directory exists. If the directory does not exist, it attempts to create it, including any necessary parent directories.

public static ensureDirectoryExists(string $dir) : void
Parameters
$dir : string

The path of the directory to check or create.

Tags
throws
RuntimeException

If the directory cannot be created.


        
On this page

Search results