qudi.util.datastorage.create_dir_for_file

qudi.util.datastorage.create_dir_for_file(file_path)[source]

Helper method to create the directory (recursively) for a given file path. Will NOT raise an error if the directory already exists.

Parameters:
file_pathstr

File path to create the directory for.