ten brief tour of the standard library operating system interface the os module provides dozens of functions for interacting with the operating systemimport os os getcwd(return the current working directory ' :\\python os chdir('/server/accesslogs'change current working directory os system('mkdir today'run the command mkdir in the system shell be sure to use the import os style instead of from os import this will keep os open(from shadowing the built-in open(function which operates much differently the built-in dir(and help(functions are useful as interactive aids for working with large modules like osimport os dir(oshelp(osfor daily file and directory management tasksthe shutil module provides higher level interface that is easier to useimport shutil shutil copyfile('data db''archive db''archive dbshutil move('/build/executables''installdir''installdir file wildcards the glob module provides function for making file lists from directory wildcard searchesimport glob glob glob('py'['primes py''random py''quote py'