[Tutor] library for files information
alan.gauld at btinternet.com
Tue Mar 24 00:35:02 CET 2009
"Shining Wisdom" <shininggg2000 at gmail.com> wrote
> Hi, i want to write a script that copy file from a folder on my hdd to a
> usb thumb drive based on the time the file was created.
> Just need help to find which library to google...
You don't need much. The os.path module will give you the creation time.
The time module may be needed too if you want to format the time
in your output..
For copying the files you can either use standard file operations or
the shutil module.
All of these are covered in my Using the OS topic in my tutorial
Author of the Learn to Program web site
More information about the Tutor