@staticmethod
def _strip_prefix(path_, parent='/'):
    """Strips 'file:' prefix and (optional) parent dir from file path."""
    stripped = path_.split(':')[-1]
    if not parent.endswith('/'):
        parent = parent + '/'
    if stripped.startswith(parent):
        stripped = stripped[len(parent):]
    return stripped
