code: def set_directory(path):
      
  
      try:
          if not foundations.common.path_exists(path):
              LOGGER.debug("> Creating directory: '{0}'.".format(path))
              os.makedirs(path)
              return True
          else:
              LOGGER.debug("> '{0}' directory already exist, skipping creation!".format(path))
              return True
      except Exception as error:
          raise foundations.exceptions.DirectoryCreationError(
              "!> {0} | Cannot create '{1}' directory: '{2}'".format(__name__, path, error))
docs: | Creates a directory with given path.
      | The directory creation is delegated to
          Python :func:`os.makedirs` definition so that directories hierarchy is recursively created.
  
      :param path: Directory path.
      :type path: unicode
      :return: Definition success.
      :rtype: bool