Question about getmtime

MRAB python at mrabarnett.plus.com
Fri Feb 19 13:06:40 EST 2010


Brandon wrote:
> Hi everyone,
> 
> Does copying or moving a file affect the return value of
> os.path.getmtime(path)?
> 
The modification time of a copied file should be the same as the
original.

The creation time of a copied file will be the time at which it was
copied, so that can result in the paradoxical state of a file having
been modified _before_ it was created! :-)



More information about the Python-list mailing list