@staticmethod
def _extract_parent_dirs(given_rel_dir, parent_dir_set):
    """
        This method extracts the parent directories of the givenDir
        and populates the parent_dir_set.
        """
    sub_paths = given_rel_dir.split('/')
    temp_path = ''
    for sub_path in sub_paths:
        temp_path += sub_path + '/'
        parent_dir_set.add(temp_path)
    return parent_dir_set
