13
def getMacCreatorAndType(path):
15
fileCreator, fileType = MacOS.GetCreatorAndType(path)
16
if sys.byteorder == "little":
17
# work around bug in MacOS.GetCreatorAndType() on intel:
18
# http://bugs.python.org/issue1594
19
fileCreator = _reverseString(fileCreator)
20
fileType = _reverseString(fileType)
21
return fileCreator, fileType
26
def setMacCreatorAndType(path, fileCreator, fileType):
28
if sys.byteorder == "little":
29
# work around bug in MacOS.SetCreatorAndType() on intel:
30
# http://bugs.python.org/issue1594
31
fileCreator = _reverseString(fileCreator)
32
fileType = _reverseString(fileType)
33
MacOS.SetCreatorAndType(path, fileCreator, fileType)