Skip to contents

Given a site and a block on that site, create a folder under json_file_base_folder where the events.json file and related image files will be stored. If the base folder doesn't exist, the function will throw an error.

Usage

create_file_folder(site, block, base_folder = json_file_base_folder())

Arguments

site

The site to create the folder for

block

The block to create the folder for

base_folder

Included for testing reasons, the default value should otherwise be used

Value

TRUE if the directory was created successfully or already exists, FALSE otherwise.