[Tutor] Moving all files in a directory

Bradford R. Bowman bowman at mazirian.com
Thu Jul 21 02:22:09 CEST 2005


I know this should be easy, but how would I go about moving all files
contained in one directory into another directory (as in the shell
command "mv /path/to/dir1/* /path/to/dir2")?  Is the os module's rename
function used for this?

-- 
Bradford R. Bowman
GnuPG Public Key available at:
http://mazirian.com/


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://mail.python.org/pipermail/tutor/attachments/20050720/13e50012/attachment.pgp


More information about the Tutor mailing list