function DevelMailLog::makeOutputDirectory

Creates the directory to contain the message file if necessary.

Throws

Exception Exception thrown when unable to create the destination directory.

1 call to DevelMailLog::makeOutputDirectory()
DevelMailLog::getFileName in ./devel.mail.inc
Gets a filename for a message using tokens.

File

./devel.mail.inc, line 107

Class

DevelMailLog
Logs mail messages to the filesystem.

Code

protected function makeOutputDirectory($output_directory) {
    if (!file_prepare_directory($output_directory, FILE_CREATE_DIRECTORY)) {
        throw new Exception("Unable to continue sending mail, {$output_directory} is not writable");
    }
}