Question about getmtime

MRAB python at
Fri Feb 19 19:06:40 CET 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

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