GetFolderItem from a mounted NFS share in OS X
Found a workaround:
for i=0 to volumecount -1
if left(volume(i).name,4)="<nfs" then
j=i
end if
next
selects volume(j) as the last nfs mount, since they appear to be named
something like "<nfs-1000>". So now
f = volume(j).child("0632.mpg")
works.
Pete
Quote:
> Anybody try this?
> I'm running OS X 10.1.3 and RB 3.5.2.
> This doesn't work:
> f=GetFolderItem("10.10.100.184")
> f=f.child("0632.mpg")
> where "10.10.100.184" is an already-mounted NFS share. I mount it
> using the menus in Finder as "NFS://10.10.100.184/r1". I see the
> share "10.10.100.184" on the desktop and can browse into it with the
> Finder and see "0632.mpg" and play that file with QuickTime, but if I
> then run the above rb code, f is nil. I also tried
> f=GetFolderItem("10.10.100.184:0632.mpg") with the same result.
> If I mount the share with AppleTalk as in "AFP://10.10.100.184/r1" it
> works fine, but I NEED to use NFS.
> Any clues?
> Thanks,
> Pete