parameters: (cls, path)
return_statement: return pathlib.PurePosixPath(path).as_posix()
docstring: Normalize a string representing a virtual path.
  
          path -- input path (string)
  
          Return a string that always starts with a slash, never contains
          consecutive slashes and only ends with a slash if it's the root
          virtual path ('/').
  
          If 'path' doesn't start with a slash ('/'), it is considered
          relative to the root. This implies that if 'path' is the empty
          string, the return value is '/'.
docstring_summary: Normalize a string representing a virtual path.
docstring_tokens: Normalize a string representing a virtual path .
function: def normalizeStringPath(cls, path):
          """Normalize a string representing a virtual path.
  
          path -- input path (string)
  
          Return a string that always starts with a slash, never contains
          consecutive slashes and only ends with a slash if it's the root
          virtual path ('/').
  
          If 'path' doesn't start with a slash ('/'), it is considered
          relative to the root. This implies that if 'path' is the empty
          string, the return value is '/'.
  
          """
          if not path.startswith('/'):
              # / is the “virtual root” of the TerraSync repository
              path = '/' + path
          elif path.startswith('//') and not path.startswith('///'):
              # Nasty special case. As allowed (but not mandated!) by POSIX[1],
              # in pathlib.PurePosixPath('//some/path'), no collapsing happens[2].
              # This is only the case for exactly *two* *leading* slashes.
              # [1] http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap04.html#tag_04_11
              # [2] https://www.python.org/dev/peps/pep-0428/#construction
              path = path[1:]
  
          return pathlib.PurePosixPath(path).as_posix()
function_tokens: def normalizeStringPath ( cls , path ) : if not path . startswith ( '/' ) : # / is the “virtual root” of the TerraSync repository path = '/' + path elif path . startswith ( '//' ) and not path . startswith ( '///' ) : # Nasty special case. As allowed (but not mandated!) by POSIX[1], # in pathlib.PurePosixPath('//some/path'), no collapsing happens[2]. # This is only the case for exactly *two* *leading* slashes. # [1] http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap04.html#tag_04_11 # [2] https://www.python.org/dev/peps/pep-0428/#construction path = path [ 1 : ] return pathlib . PurePosixPath ( path ) . as_posix ( )