GetFolderItem from a mounted NFS share in OS X 
Author Message
 GetFolderItem from a mounted NFS share in OS X

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



Mon, 20 Sep 2004 05:33:16 GMT  
 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



Tue, 21 Sep 2004 00:52:30 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. NFS mounts on WUARCHIVE

2. problem recursively removing directories on an NFS mount

3. Glob * fails on an SGI NFS file system mounted on Linux

4. FIX: Tcl 8.0 hangs on Solstice NFS (PC-NFS) volumes

5. OS/2 REXX, mounted drives, and SysFileTree

6. ENVY, OS/2, NFS

7. OS/2 Rexx and NFS

8. Problems with Getfolderitem Function

9. getfolderitem and utf-16

10. Getfolderitem problem

11. GetFOlderItem and Nil ???

12. Shared Libs under OS 10.1

 

 
Powered by phpBB® Forum Software