programming your computer to do these tasksyou can transform it into quick-working file clerk who never makes mistakes as you begin working with filesyou may find it helpful to be able to quickly see what the extension txtpdfjpgand so onof file is with macos and linuxyour file browser most likely shows extensions automatically with windowsfile extensions may be hidden by default to show extensionsgo to start control panelappearance and personalizationfolder options on the view tabunder advanced settingsuncheck the hide extensions for known file types checkbox the shutil module the shutil (or shell utilitiesmodule has functions to let you copymoverenameand delete files in your python programs to use the shutil functionsyou will first need to use import shutil copying files and folders the shutil module provides functions for copying filesas well as entire folders calling shutil copy(sourcedestinationwill copy the file at the path source to the folder at the path destination (both source and destination can be strings or path objects if destination is filenameit will be used as the new name of the copied file this function returns string or path object of the copied file enter the following into the interactive shell to see how shutil copy(worksimport shutilos from pathlib import path path home(shutil copy( 'spam txt' 'some_folder'' :\\users\\al\\some_folder\\spam txtshutil copy( 'eggs txt' 'some_folder/eggs txt'windowspath(' :/users/al/some_folder/eggs txt'the first shutil copy(call copies the file at :\users\al\spam txt to the folder :\users\al\some_folder the return value is the path of the newly copied file note that since folder was specified as the destination the original spam txt filename is used for the newcopied file' filename the second shutil copy(call also copies the file at :\users\al\eggs txt to the folder :\users\al\some_folder but gives the copied file the name eggs txt while shutil copy(will copy single fileshutil copytree(will copy an entire folder and every folder and file contained in it calling shutil copytree(sourcedestinationwill copy the folder at the path sourcealong with all of its files and subfoldersto the folder at the path destination the source and destination parameters are both strings the function returns string of the path of the copied folder