move(srcdstmoves file or directory src to dst will recursively copy src if it is being moved to different file system rmtree(path [ignore_errors [onerror]]deletes an entire directory tree if ignore_errors is trueerrors will be ignored otherwiseerrors are handled by the onerror function (if suppliedthis function must accept three parameters (funcpathand excinfo)where func is the function that caused the error (os remove(or os rmdir())path is the pathname passed to the functionand excinfo is the exception information returned by sys exc_info(if an error occurs and onerror is omittedan exception is raised tarfile the tarfile module is used to manipulate tar archive files using this moduleit is possible to read and write tar fileswith or without compression is_tarfile(namereturns true if name appears to be valid tar file that can be read by this module open([name [mode [fileobj [bufsize]]]]creates new tarfile object with the pathname name mode is string that specifies how the tar file is to be opened the mode string is combination of file mode and compression scheme specified as 'filemode[:compression]valid combinations include the followingmode description 'ropen for reading if the file is compressedit is decompressed transparently this is the default mode open for reading without compression open for reading with gzip compression open for reading with bzip compression open for appending with no compression open for writing with no compression open for writing with gzip compression open for writing with bzip compression ' :' :gz' :bz ' '' :' '' :' :gz' :bz the following modes are used when creating tarfile object that only allows sequential / access (no random seeks)mode description ' |' |gz' |bz ' |' |gz' |bz open stream of uncompressed blocks for reading open gzip compressed stream for reading open bzip compressed stream for reading open an uncompressed stream for writing open gzip compressed stream for writing open bzip compressed stream for writing lib fl ff