diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2002-10-29 22:48:43 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-10-29 22:48:43 (GMT) |
commit | 37e477216beb70d100a9d4ca670158d33f77cd96 (patch) | |
tree | ebe438e7ff3717dbb60532cedf58163eba21486a /Mac/Lib/macostools.py | |
parent | 2c9590f62549ded76dbdf096ee106e7b43f004f5 (diff) | |
download | cpython-37e477216beb70d100a9d4ca670158d33f77cd96.zip cpython-37e477216beb70d100a9d4ca670158d33f77cd96.tar.gz cpython-37e477216beb70d100a9d4ca670158d33f77cd96.tar.bz2 |
Forward port of 1.12.14.3 (which has an incorrect log message):
if SetDates() in touched() returns an error ignore it: the user may not have
permission to change the parent folder. This is a non-serious problem,
the only function of touched() is to speed up the finder seeing the
change.
Diffstat (limited to 'Mac/Lib/macostools.py')
-rw-r--r-- | Mac/Lib/macostools.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Mac/Lib/macostools.py b/Mac/Lib/macostools.py index 5b94ee2..8822ab8 100644 --- a/Mac/Lib/macostools.py +++ b/Mac/Lib/macostools.py @@ -71,7 +71,10 @@ def touched(dst): now = time.time() if now == moddate: now = now + 1 - dir_fss.SetDates(crdate, now, bkdate) + try: + dir_fss.SetDates(crdate, now, bkdate) + except macfs.error: + pass def touched_ae(dst): """Tell the finder a file has changed""" |