Lines Matching refs:path
30 def normalize_path(path):
32 """Normalize a path by ensuring it is a string.
34 If the resulting string contains path separators, an exception is raised.
36 str_path = str(path)
37 parent, file_name = os.path.split(str_path)
39 raise ValueError(f'{path!r} must be only a file name')
92 return [path.name for path in _common.files(package).iterdir()]
109 def path(
113 """A context manager providing a file path object to the resource.