comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: FINDFILE vs. FILE_SEARCH
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: FINDFILE vs. FILE_SEARCH [message #47018] Wed, 18 January 2006 09:26 Go to previous message
news.qwest.net is currently offline  news.qwest.net
Messages: 137
Registered: September 2005
Senior Member
"Mark Conner" <mconner1@gmail.com> wrote in message
news:1137600968.365781.139820@z14g2000cwz.googlegroups.com.. .
> I'm using IDL 6.1 on WinXP Pro to look for a set of files (can be
> 1500+) in a directory on a Sun system connected via Samba. The
> directory appears as the standard UNC (\\server\directory\files.ext).
>
> I've read all the stuff that says to use FILE_SEARCH instead of
> FINDFILE. However, it takes nearly two minutes to return a list of
> files (setting /NOSORT saves perhaps a couple seconds). Using FINDFILE
> I get a list back in three seconds. Any ideas why?
>
> Network traffic or machine loads on either end are not a factor. I'm
> guessing it's a issue with how FILE_SEARCH interacts with
> Samba-connected directories, but does anyone know for sure?
> Workarounds (other than continuing to use FINDFILE and hope it works
> properly)?
>
> - Mark


In the past I have run into a lot of problems with the various filename
reading functions.
Some suggestions:
- use findfile (if it does indeed give a proper list of files)
- spawn to the system and get a file listing
- perhaps change the current directory (IDL> cd,'current_dir') then do the
filesearch function (then change the cd back)
- create a listing in the operating (>ls > dir.txt) then read that text file
into IDL
(if the file listing is fairly static, this should work fine)
- create a rule for predicting what filenames should exist (for instance,
with data
files with names like "wind20060101.dat', you can just create the filename,
then
see if it exists).

Cheers,
bob
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: And again more about Plot!
Next Topic: problem with colors

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 23:06:32 PDT 2025

Total time taken to generate the page: 0.48146 seconds