2 # FixCreator - Search for files with PYTH creator
13 def walktree(name
, change
):
14 if os
.path
.isfile(name
):
15 fs
= macfs
.FSSpec(name
)
16 cur_cr
, cur_tp
= fs
.GetCreatorType()
18 fs
.SetCreatorType(NEW
, cur_tp
)
19 macostools
.touched(fs
)
21 elif os
.path
.isdir(name
):
23 files
= os
.listdir(name
)
25 walktree(os
.path
.join(name
, f
), change
)
28 fss
, ok
= macfs
.GetDirectory('Folder to search:')
31 walktree(fss
.as_pathname(), change
)
33 if __name__
== '__main__':