protected function makeFileDirectory($directoryPath)
    {
        $filePath = $this->publicRoot . $directoryPath;

        // Create the path if the directory does not exist
        if (!is_dir($filePath)) {
            try {
                mkdir($filePath, 0775, true);
                return true;
            } catch (Exception $e) {
                throw new Exception('PitonCMS: Failed to create file upload directory');
            }
        }

        // The directory already exists
        return false;
    }