{"id":4268,"date":"2021-04-27T19:38:00","date_gmt":"2021-04-27T14:08:00","guid":{"rendered":"https:\/\/python-programs.com\/?p=4268"},"modified":"2021-11-22T18:53:43","modified_gmt":"2021-11-22T13:23:43","slug":"python-how-to-copy-files-from-one-location-to-another-using-shutil-copy","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-how-to-copy-files-from-one-location-to-another-using-shutil-copy\/","title":{"rendered":"Python : How to copy files from one location to another using shutil.copy()"},"content":{"rendered":"

In this article, we will discuss how to copy files from one directory to another using shutil.copy().<\/p>\n

shutil.copy()<\/h3>\n

We have a function named shutil.copy() provided by python shutil module.<\/p>\n

shutil.<\/span>copy<\/span>(<\/span>src, dst, *, follow_symlinks=<\/span>True<\/span>)<\/span><\/pre>\n

It copies the file pointed by src to the directory pointed by dst.<\/p>\n

Parameters:<\/em><\/p>\n