1239 |
from Carbon.File import FSSpec |
from Carbon.File import FSSpec |
1240 |
import MacOS |
import MacOS |
1241 |
try: |
try: |
1242 |
fsobj = FSSpec(self.path) |
fsobj = FSSpec(rpath.path) |
1243 |
finderinfo = fsobj.FSpGetFInfo() |
finderinfo = fsobj.FSpGetFInfo() |
1244 |
cfile = {'creator': finderinfo.Creator, |
cfile = {'creator': finderinfo.Creator, |
1245 |
'type': finderinfo.Type, |
'type': finderinfo.Type, |
1248 |
return cfile |
return cfile |
1249 |
except MacOS.Error: |
except MacOS.Error: |
1250 |
log.Log("Cannot read carbonfile information from %s" % |
log.Log("Cannot read carbonfile information from %s" % |
1251 |
(self.path,), 2) |
(rpath.path,), 2) |
1252 |
return None |
return None |
1253 |
|
|
1254 |
|
|