PyDocs

Nav

File and Directory Access

commonpath

os.path

function · Added in 3.5 (source)
  • commonpath(paths)
Given a sequence of path names, returns the longest common sub-path.
Changed in 3.6, 3.13
  • 3.6: Accepts a sequence of path-like objects.
  • 3.13: Any iterable can now be passed, rather than just sequences.
0 Examples
No examples for os.path/commonpath.
See Also
No see-alsos for os.path/commonpath
0 Notes
No notes for commonpath