Copying, moving, renaming, and deleting data

We will be learning about the four basic operations that system administrators perform on data, which are copy, move, rename, and delete. Python has a built-in module called shutil, which can perform these tasks. Using the shutil module, we can perform high-level operations on the data as well. To use the shutil module in your program, just write the import shutil import statement. The shutil module offers a few functions that support file copy and remove operations. Let's learn about these operations one by one.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset