plaso/engine/path_helper.py
def _StripDriveFromPath(cls, path):
    """Removes a leading drive letter or %SystemDrive% from the path.

    Args:
      path (str): path.

    Returns:
      str: path without leading drive letter or %SystemDrive%.
    """
    if len(path) >= 2 and path[1] == ':':
      return path[2:]

    path_upper_case = path.upper()
    if path_upper_case.startswith('%%ENVIRON_SYSTEMDRIVE%%\\'):
      return path[23:]

    if path_upper_case.startswith('%SYSTEMDRIVE%\\'):
      return path[13:]

    return path
Removes a leading drive letter or %SystemDrive% from the path.

    Args:
      path (str): path.

    Returns:
      str: path without leading drive letter or %SystemDrive%.
    
Removes a leading drive letter or %SystemDrive% from the path.
Removes a leading drive letter or %SystemDrive% from the path .
def _StripDriveFromPath(cls, path):
    if len(path) >= 2 and path[1] == ':':
      return path[2:]
    path_upper_case = path.upper()
    if path_upper_case.startswith('%%ENVIRON_SYSTEMDRIVE%%\\'):
      return path[23:]
    if path_upper_case.startswith('%SYSTEMDRIVE%\\'):
      return path[13:]
    return path
def _StripDriveFromPath ( cls , path ) : if len ( path ) >= 2 and path [ 1 ] == ':' : return path [ 2 : ] path_upper_case = path . upper ( ) if path_upper_case . startswith ( '%%ENVIRON_SYSTEMDRIVE%%\\' ) : return path [ 23 : ] if path_upper_case . startswith ( '%SYSTEMDRIVE%\\' ) : return path [ 13 : ] return path
Removes a leading drive letter or %SystemDrive% from the path.
Removes a leading drive letter or %SystemDrive% from the path .
"""Removes a leading drive letter or %SystemDrive% from the path.

    Args:
      path (str): path.

    Returns:
      str: path without leading drive letter or %SystemDrive%.
    """
path without leading drive letter or %SystemDrive%.
path without leading drive letter or %SystemDrive% .
str
cls
path
None