Home | History | Annotate | Download | only in os

Lines Matching refs:path

19 def JoinTargetPath(path, *paths):
20 """Concatenates paths and inserts target path separators between them.
23 path: string, the first path to be concatenated.
27 string, the concatenated path.
29 return posixpath.join(path, *paths)
32 def TargetBaseName(path):
33 """Returns the base name of the path on target device.
36 path: string, the path on target device.
41 return posixpath.basename(path)
44 def TargetDirName(path):
45 """Returns the directory name of the path on target device.
48 path: string, the path on target device.
53 return posixpath.dirname(path)
56 def TargetNormPath(path):
57 """Removes redundant separators and resolves relative path.
60 path: string, the path on target device.
63 string, the normalized path.
65 return posixpath.normpath(path)