Top "Shutil" questions

A Python module which contains a number of utility methods for file or directory operations, such as copying, moving, etc.

move a file to the current directory using shutil module

I know this may sound really stupid, but how can I move a file in a directory a user browsed …

python cmd shutil
How do I create a zip file of a file path using Python, including empty directories?

I've been trying to use the zipfile and shutil.make_archive modules to recursively create a zip file of a …

python zip zipfile shutil
Python multiprocess/multithreading to speed up file copying

I have a program which copies large numbers of files from one location to another - I'm talking 100,000+ files (I'm …

python multithreading shutil
Python: Using shutil.move or os.rename to move folders

I have written a script to move video files from one directory to another, it will also search sub directories …

python rename shutil
moving a file in python using shutil

I know there have been some posts on how to move a file in python but I am a little …

python shutil
What is difference between root and base directory?

I am trying to use shutils.py , make_archive function. here: https://docs.python.org/2/library/shutil.html#archiving-operations but …

python shutil
Checking when shutil.copyfile is done

I have a such code: for file in file_list: shutil.copyfile(file,newpath) #do further actions And here is …

python file-copying shutil
Copy a file, but don't overwrite, without TOCTTOU issues in Python

I know that if I want to copy a file in Python but not overwrite the destination I can use …

python race-condition shutil