@staticmethod
def _path_esc(path: str) ->str:
    """Escape space character in the path.

        :param path: path to be escaped
        :type path: str
        :return: path with escaped spaces
        :rtype: str
        """
    return path.replace(' ', '\\ ')
