PyDocs

Nav

Generic Operating System Services

chdir

os

function
  • chdir(path)
Change the current working directory to the specified path.

path may always be specified as a string.  On some platforms, path may
also be specified as an open file descriptor.  If this functionality is
unavailable, using it raises an exception.
Changed in 3.3, 3.6
  • 3.3: Added support for specifying path as a file descriptor on some platforms.
  • 3.6: Accepts a path-like object.
0 Examples
No examples for os/chdir.
See Also
No see-alsos for os/chdir
0 Notes
No notes for chdir