[Tutor] copy/paste/move files

Alan Gauld alan.gauld at yahoo.co.uk
Wed May 17 19:11:51 EDT 2017


On 17/05/17 20:09, Michael C wrote:

> How do I move files to a designated folder or copy/paste?

copy/paste is a UI specific thing, you don't do that in Python code.
What you do  is either copy a file or move it.

The shutil module provides easy functions for both.
See the documentation for the module.


-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list