Re: FINDFILE vs. FILE_SEARCH [message #47018] |
Wed, 18 January 2006 09:26  |
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
|
|
|