Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3ff82a3

Browse files
committed
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.
1 parent 3112bc1 commit 3ff82a3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Mac/Lib/macostools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def mkdirs(dst):
5858
mkdirs(head)
5959
os.mkdir(dst, 0777)
6060

61-
def touched_old(dst):
61+
def touched(dst):
6262
"""Tell the finder a file has changed"""
6363
file_fss = macfs.FSSpec(dst)
6464
vRefNum, dirID, name = file_fss.as_tuple()
@@ -69,7 +69,7 @@ def touched_old(dst):
6969
now = now + 1
7070
dir_fss.SetDates(crdate, now, bkdate)
7171

72-
def touched(dst):
72+
def touched_ae(dst):
7373
"""Tell the finder a file has changed"""
7474
import Finder
7575
f = Finder.Finder()

0 commit comments

Comments
 (0)