Commit 2f2c6249 authored by Jack Jansen's avatar Jack Jansen

The new touched() was far too expensive. Re-enabled the old one, the ae-based...

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.
parent 07824040
......@@ -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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment