Return the macfs variation for FSSpec and Alias, not the underlying
Carbon.File version, so the old method names work.
diff --git a/Mac/Lib/macfs.py b/Mac/Lib/macfs.py
index 93f40e6..a0aa032 100644
--- a/Mac/Lib/macfs.py
+++ b/Mac/Lib/macfs.py
@@ -68,7 +68,8 @@
print "Alias.Update not yet implemented"
def Resolve(self, src=None):
- return self.ResolveAlias(src)[1:]
+ fss, changed = self.ResolveAlias(src)
+ return FSSpec(fss), changed
from Carbon.File import FInfo
@@ -78,7 +79,8 @@
FInfoType = FInfo
def ResolveAliasFile(fss, chain=1):
- return Carbon.File.ResolveAliasFile(fss, chain)
+ fss, isdir, isalias = Carbon.File.ResolveAliasFile(fss, chain)
+ return FSSpec(fss), isdir, isalias
def RawFSSpec(data):
return FSSpec(rawdata=data)
@@ -90,7 +92,7 @@
raise NotImplementedError, "FindApplication no longer implemented"
def NewAliasMinimalFromFullPath(path):
- return Carbon.Files.NewAliasMinimalFromFullPath(path, '', '')
+ return Alias(Carbon.File.NewAliasMinimalFromFullPath(path, '', ''))
# Finally, install nav services
import macfsn
\ No newline at end of file