def create_directory(self, directory_path):
        """Create a directory if it does not already exist.

        :param str directory_name: A fully qualified path of the
            to create.
        :returns: bool
        """
        try:
            if os.path.exists(directory_path):
                return True
            else:
                os.makedirs(directory_path)
                return True
        except __HOLE__:
            # OSError is thrown for cases like no permission
            pass

        return False
dataset/ETHPy150Open jmathai/elodie/elodie/filesystem.py/FileSystem.create_directory