def GetPathSegmentAndSuffix(self, base_path, path):
    if path is None or base_path is None or not path.startswith(base_path):
      return None, None

    path_index = len(base_path)
    if base_path and not base_path.endswith(self.PATH_SEPARATOR):
      path_index += 1

    if path_index == len(path):
      return u'', u''

    path_segment, _, suffix = path[path_index:].partition(self.PATH_SEPARATOR)
    return path_segment, suffix
Generate report for a subfolder.
dataset/ETHPy150Open log2timeline/dfvfs/dfvfs/vfs/file_system.py/FileSystem.GetPathSegmentAndSuffix--crossover with--dataset/ETHPy150Open dossier/dossier.models/dossier/models/report.py/ReportGenerator._generate_for_subfolder