1. how find if/where a file is
- Posted by Dan B Moyer <DANMOYER at PRODIGY.NET> Sep 07, 2000
- 542 views
Can anyone suggest how I might go about programmatically finding if a file is present and if so where it is? It should (almost certainly) be under Euphoria, and I have an example which showed me: -- FIND WHERE EUPHORIA STUFF IS ON DRIVE: object EuDir -- EUDIR environment variable EuDir = getenv("EUDIR") but I don't know how to then search for all the subdirectories for the file; I thought I had seen something that might relate, more than one reference to a "dirwalk" here, but I searched the archives and manuals & couldn't find it. Dan Moyer
2. Re: how find if/where a file is
- Posted by Ray & Debbie Smith <smithr at IX.NET.AU> Sep 08, 2000
- 498 views
Hi Dan, There is a command called "walk_dir" which you can check up on in library.doc. It has an option to recursively walk through all files/directories given a starting directory. Looks like it's what your after, Ray Smith ----- Original Message ----- From: Dan B Moyer <DANMOYER at PRODIGY.NET> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Thursday, September 07, 2000 10:46 PM Subject: how find if/where a file is > Can anyone suggest how I might go about programmatically finding if a file > is present and if so where it is? It should (almost certainly) be under > Euphoria, and I have an example which showed me: > > -- FIND WHERE EUPHORIA STUFF IS ON DRIVE: > object EuDir -- EUDIR environment variable > EuDir = getenv("EUDIR") > > but I don't know how to then search for all the subdirectories for the file; > I thought I had seen something that might relate, more than one reference to > a "dirwalk" here, but I searched the archives and manuals & couldn't find > it. > > Dan Moyer
3. Re: how find if/where a file is
- Posted by Michael Nelson <MichaelANelson at WORLDNET.ATT.NET> Sep 07, 2000
- 519 views
Dan, The function you are looking for is "walk_dir()" -- Mike Nelson ----- Original Message ----- From: "Dan B Moyer" <DANMOYER at PRODIGY.NET> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Thursday, September 07, 2000 5:46 AM Subject: how find if/where a file is > Can anyone suggest how I might go about programmatically finding if a file > is present and if so where it is? It should (almost certainly) be under > Euphoria, and I have an example which showed me: > > -- FIND WHERE EUPHORIA STUFF IS ON DRIVE: > object EuDir -- EUDIR environment variable > EuDir = getenv("EUDIR") > > but I don't know how to then search for all the subdirectories for the file; > I thought I had seen something that might relate, more than one reference to > a "dirwalk" here, but I searched the archives and manuals & couldn't find > it. > > Dan Moyer
4. Re: how find if/where a file is
- Posted by Dan B Moyer <DANMOYER at PRODIGY.NET> Sep 07, 2000
- 590 views
<chagrin> No wonder I couldn't find it when I looked for dir_walk!! Dan <slapping forehead> ----- Original Message ----- From: "Ray & Debbie Smith" <smithr at IX.NET.AU> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Thursday, September 07, 2000 7:10 AM Subject: Re: how find if/where a file is > Hi Dan, > > There is a command called "walk_dir" which you can check up on in > library.doc. > It has an option to recursively walk through all files/directories given a > starting directory. > > Looks like it's what your after, > > Ray Smith > > > ----- Original Message ----- > From: Dan B Moyer <DANMOYER at PRODIGY.NET> > To: <EUPHORIA at LISTSERV.MUOHIO.EDU> > Sent: Thursday, September 07, 2000 10:46 PM > Subject: how find if/where a file is > > > > Can anyone suggest how I might go about programmatically finding if a file > > is present and if so where it is? It should (almost certainly) be under > > Euphoria, and I have an example which showed me: > > > > -- FIND WHERE EUPHORIA STUFF IS ON DRIVE: > > object EuDir -- EUDIR environment variable > > EuDir = getenv("EUDIR") > > > > but I don't know how to then search for all the subdirectories for the > file; > > I thought I had seen something that might relate, more than one reference > to > > a "dirwalk" here, but I searched the archives and manuals & couldn't find > > it. > > > > Dan Moyer
5. Re: how find if/where a file is
- Posted by Dan B Moyer <DANMOYER at PRODIGY.NET> Sep 07, 2000
- 518 views
Jeeze! It was right there under "file & device IO" where one might expect it, instead of under "operating system" where I kept looking! Sigh. I shoulda known I was doing something wrong when I didn't ever see "dir" there. Thanks :) Dan still chagrined ----- Original Message ----- From: "Michael Nelson" <MichaelANelson at WORLDNET.ATT.NET> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Thursday, September 07, 2000 6:28 AM Subject: Re: how find if/where a file is > Dan, > > The function you are looking for is "walk_dir()" > > -- Mike Nelson > > > ----- Original Message ----- > From: "Dan B Moyer" <DANMOYER at PRODIGY.NET> > To: <EUPHORIA at LISTSERV.MUOHIO.EDU> > Sent: Thursday, September 07, 2000 5:46 AM > Subject: how find if/where a file is > > > > Can anyone suggest how I might go about programmatically finding if a file > > is present and if so where it is? It should (almost certainly) be under > > Euphoria, and I have an example which showed me: > > > > -- FIND WHERE EUPHORIA STUFF IS ON DRIVE: > > object EuDir -- EUDIR environment variable > > EuDir = getenv("EUDIR") > > > > but I don't know how to then search for all the subdirectories for the > file; > > I thought I had seen something that might relate, more than one reference > to > > a "dirwalk" here, but I searched the archives and manuals & couldn't find > > it. > > > > Dan Moyer