]> granicus.if.org Git - python/commitdiff
The new touched() was far too expensive. Re-enabled the old one, the ae-based one...
authorJack Jansen <jack.jansen@cwi.nl>
Wed, 14 Feb 2001 17:06:32 +0000 (17:06 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Wed, 14 Feb 2001 17:06:32 +0000 (17:06 +0000)
Mac/Lib/macostools.py

index 9fc3a4999de8df161be2a131e490c727006edc11..5b12fc081ea8ad04c61bf5a62b3ca951f3914723 100644 (file)
@@ -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()