generate_directory: Generate a system of folders from a file path to a new directory
Description
This function is intended to be helpful in simulations when directories need to be created and named according to values that are used or created within the simulation.