diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2001-02-14 17:06:32 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-02-14 17:06:32 (GMT) |
commit | 3ff82a3a4c4e73aca8254228c751d66a530ba362 (patch) | |
tree | b18c624f4c828deffb48938d9f9f8a5dccabd8b8 /Mac/Lib/macostools.py | |
parent | 3112bc10eeab3ff9af01a97d60cb4a5a3b531f41 (diff) | |
download | cpython-3ff82a3a4c4e73aca8254228c751d66a530ba362.zip cpython-3ff82a3a4c4e73aca8254228c751d66a530ba362.tar.gz cpython-3ff82a3a4c4e73aca8254228c751d66a530ba362.tar.bz2 |
The new touched() was far too expensive. Re-enabled the old one, the ae-based one is available as touched_ae(). Have to read up on the subject of telling the finder about changes.
Diffstat (limited to 'Mac/Lib/macostools.py')
-rw-r--r-- | Mac/Lib/macostools.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Mac/Lib/macostools.py b/Mac/Lib/macostools.py index 9fc3a49..5b12fc0 100644 --- a/Mac/Lib/macostools.py +++ b/Mac/Lib/macostools.py @@ -58,7 +58,7 @@ def mkdirs(dst): mkdirs(head) os.mkdir(dst, 0777) -def touched_old(dst): +def touched(dst): """Tell the finder a file has changed""" file_fss = macfs.FSSpec(dst) vRefNum, dirID, name = file_fss.as_tuple() @@ -69,7 +69,7 @@ def touched_old(dst): now = now + 1 dir_fss.SetDates(crdate, now, bkdate) -def touched(dst): +def touched_ae(dst): """Tell the finder a file has changed""" import Finder f = Finder.Finder() |