diff options
author | Lars Gustäbel <lars@gustaebel.de> | 2008-12-12 13:58:03 (GMT) |
---|---|---|
committer | Lars Gustäbel <lars@gustaebel.de> | 2008-12-12 13:58:03 (GMT) |
commit | 3b02742f7df5831eae5e23b80d2b19b4ee42f75b (patch) | |
tree | 2a8550381b4fbbd8bdfa813da77e03038ba17361 /Lib/tarfile.py | |
parent | 4c96fa55258628fa917c3ccf2bf2d84070955dc1 (diff) | |
download | cpython-3b02742f7df5831eae5e23b80d2b19b4ee42f75b.zip cpython-3b02742f7df5831eae5e23b80d2b19b4ee42f75b.tar.gz cpython-3b02742f7df5831eae5e23b80d2b19b4ee42f75b.tar.bz2 |
Issue #4616: TarFile.utime(): Restore directory times on Windows.
Diffstat (limited to 'Lib/tarfile.py')
-rw-r--r-- | Lib/tarfile.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/tarfile.py b/Lib/tarfile.py index ab74cc5..b678185 100644 --- a/Lib/tarfile.py +++ b/Lib/tarfile.py @@ -2284,10 +2284,6 @@ class TarFile(object): """ if not hasattr(os, 'utime'): return - if sys.platform == "win32" and tarinfo.isdir(): - # According to msdn.microsoft.com, it is an error (EACCES) - # to use utime() on directories. - return try: os.utime(targetpath, (tarinfo.mtime, tarinfo.mtime)) except EnvironmentError, e: |