![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Does anyone have the source for Universe's LISTFILES program? I need to determine which files are local and which are remote. The LISTFL verb points to *LISTFILES which I can't find the source to. Alternatively, If someone can explain how LISTFILES determines local/remote status, that would be just as good. Thanks, Ed |
#3
| |||
| |||
|
|
Ed Sheehan wrote: Does anyone have the source for Universe's LISTFILES program? I need to determine which files are local and which are remote. The LISTFL verb points to *LISTFILES which I can't find the source to. Alternatively, If someone can explain how LISTFILES determines local/remote status, that would be just as good. Thanks, Ed In both cases TYPE = "F". Local has selection criteria F2 NOT.MATCHING ".../..." AND F2 NOT.MATCHING "...\..." Remote has selection criteria F2 MATCHING ".../..." OR F2 MATCHING "...\..." Regards, Keith |
#4
| |||
| |||
|
|
Thanks Keith, I suspected it had something to do with slashes. I've noticed that many local files can/do have slashes as well (pointing to their own account), so I'll need to do some further processing, but this will start the ball rolling. Thanks again, Ed "Pickie" <keith.johnson (AT) datacom (DOT) co.nz> wrote in message news:1169498001.635688.177310 (AT) m58g2000cwm (DOT) googlegroups.com... Ed Sheehan wrote: Does anyone have the source for Universe's LISTFILES program? I need to determine which files are local and which are remote. The LISTFL verb points to *LISTFILES which I can't find the source to. Alternatively, If someone can explain how LISTFILES determines local/remote status, that would be just as good. Thanks, Ed In both cases TYPE = "F". Local has selection criteria F2 NOT.MATCHING ".../..." AND F2 NOT.MATCHING "...\..." Remote has selection criteria F2 MATCHING ".../..." OR F2 MATCHING "...\..." Regards, Keith |
#5
| |||
| |||
|
|
You can also open the file to a filevar, use the STATUS statement |
|
to get a dynamic array of information about the file. Field 27 is the full pathname to the file. Compare that (or portions of it) to the pathname to the directory you are in. |
#6
| |||
| |||
|
|
Clifton Oliver wrote: You can also open the file to a filevar, use the STATUS statement !!! Note: status STATEMENT, not function. !!! to get a dynamic array of information about the file. Field 27 is the full pathname to the file. Compare that (or portions of it) to the pathname to the directory you are in. As a matter of fact, I keep a set of I-descriptors in DICT VOC (I share one D_VOC across all accounts.) that extracts most of the STATUS info and makes it generally available to SELECT & LIST. Each I-desc displays a separate field from the array generated by STATUS. FILEINFO function, too. cds |
#7
| |||
| |||
|
|
Am I correct in observing that, if the F-pointer has embedded pathing, the STATUS Field 27 is always the same as the contents of the F-pointer? |
#8
| |||
| |||
|
|
Does anyone have the source for Universe's LISTFILES program? I need to determine which files are local and which are remote. The LISTFL verb points to *LISTFILES which I can't find the source to. Alternatively, If someone can explain how LISTFILES determines local/remote status, that would be just as good. Thanks, Ed |
![]() |
| Thread Tools | |
| Display Modes | |
| |