[ python-Bugs-1671965 ] shutil.copy2 modifies decimal part of last modification time

SourceForge.net noreply at sourceforge.net
Thu Mar 1 20:44:45 CET 2007


Bugs item #1671965, was opened at 2007-03-01 20:44
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1671965&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Guy Dalberto (guy-dalberto)
Assigned to: Nobody/Anonymous (nobody)
Summary: shutil.copy2 modifies decimal part of last modification time

Initial Comment:
Problem on Windows 2000 with Python 2.5.

When copying a file with shutil.copy2,
the last modification times should be copied.

What happens is that :
+ the integer part is copied correctly
+ the decimal part is modified 

+ some samples :
           source-lastmod-time   copy-lastmod-time
  file_0.txt 1172574881.34375 => 1172574881.034375
  file_1.txt 1172574881.46875 => 1172574881.046875

+ what is really odd is that the decimal part is
  divided by 10

The attached file *test_shutil_copy2.py* contains an Unit Test that demonstrate the incorrect behaviour

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1671965&group_id=5470


More information about the Python-bugs-list mailing list