Hi Andy, to be on the safe side, I’d open a ticket with the ooRexx team. Also, which version? There has been lot of activity on the Sys*File* OS specific parts. So it might be solved - or it shows that the main developers have Windows machines, in which case this needs to be added to the test suite.
Does it also happen outside of RexxTry? Cross-posted, by me, to oorexx-devel. best regards, René. > On 17 Jun 2021, at 07:25, Andy McMenemy <andy.mcmen...@gmail.com> wrote: > > Gentlefolk... I could do with a little help (or a slap round the head). > I have a remotely mounted drive (on Linux) and I wish to use one of its > subdirectories. I am, however, getting a response that is currently baffling > me... > > I have use REXXTRY to illustrate... > Firstly let's identify the mounted drive: > pi@barnowl:/myrexx $ rexx rexxtry.rex > /mnt/projects/code/Code/Rexx/rexxtry.rex lets you interactively try REXX > statements. > Each string is executed when you hit Enter. > Enter 'call tell' for a description of the features. > Go on - try a few... Enter 'exit' to end. > address command 'df' > Filesystem 1K-blocks Used Available Use% Mounted on > /dev/root 27776536 17993552 8348952 69% / > devtmpfs 1801496 0 1801496 0% /dev > .. > .. > .. > 192.168.1.15:/volume1/projects 3840822656 866880000 2973823872 23% > /mnt/projects > 192.168.1.15:/volume1/Public15 3840822656 866880000 2973823872 23% /mnt/src > rc = 0 ........... /mnt/projects/code/Code/Rexx/rexxtry.rex on LINUX > > Clearly Public15 is mounted on /mnt/src > > address command 'ls /mnt/src' > ArchivedOldDocuments Genealogy IMG_3158.jpg IMG_3165.jpg > IMG_3181.jpg IMG_3188.jpg passion-facade-detail_42294221_o.jpg > ZoesOldLaptopPictures > Doculib IMG_1139.jpg IMG_3161.jpg IMG_3174.jpg > IMG_3183.jpg IMG_3189.jpg Patchworkers > Documents IMG_1148.jpg IMG_3163.jpg IMG_3176.jpg > IMG_3185.jpg LightroomDB '#recycle' > 'Documents and Letters' IMG_3157.jpg IMG_3164.jpg IMG_3178.jpg > IMG_3187.jpg 'Onedrive (Backup)' the-towers_42294309_o.jpg > rc = 0 ........... /mnt/projects/code/Code/Rexx/rexxtry.rex on LINUX > srcdir = "/mnt/src/'Documents and Letters'" > .................. /mnt/projects/code/Code/Rexx/rexxtry.rex on LINUX > say srcdir > /mnt/src/'Documents and Letters' > .................. /mnt/projects/code/Code/Rexx/rexxtry.rex on LINUX > > I can use the ls command to view the drive, and I can see the directory I > wish to access, namely, 'Documents and Letters'; I have set a variable > 'srcdir' to contain that path. So far, so good. > > I can use the variable to list the contents of the directory > > address command "ls" srcdir > '20041222 Libby Rose - Butlin House Complaint.doc' 'KINGSTON PARISH > COUNCIL Planning comments.doc' > '20061212 Kim Heathrow pickup.doc' 'KPC - Planning.mmp' > 'Kingston Gorse' 'Zoes Stuff' > rc = 0 ........... /mnt/projects/code/Code/Rexx/rexxtry.rex on LINUX > > So everything seems to be as expected. This is where it suddenly gives me an > unexpected result... Let's just check the directory one more time > > if sysisfiledirectory(srcdir) Then say "It is a directory"; else Say "It is > NOT a directory" > It is NOT a directory > .................. /mnt/projects/code/Code/Rexx/rexxtry.rex on LINUX > > > Errr.... Excuse me! I thought we had just proved, pretty conclusively that it > is a directory and we have access to it. But the SysIsFileDirectory doesn't > seem to think so. > > Can anyone tell me how stupid I am? > > Andy > > > _______________________________________________ > rexxla-members mailing list -- mailto:rexxla-memb...@rexxla.org > http://rexxla.org/mailman/listinfo/rexxla-members
_______________________________________________ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel