psychopy_ext.exp.try_makedirs

psychopy_ext.exp.try_makedirs(path)[source]

Attempts to create a new directory.

This function improves os.makedirs() behavior by printing an error to the log file if it fails and entering the debug mode (pdb) so that data would not be lost.

Args:
path (str)

A path to create.