Import

Kenneth Brody kenbrody at spamcop.net
Wed Aug 3 11:28:05 PDT 2011


On 8/3/2011 2:21 PM, Richard Kreiss wrote:
> I should have said I was using Opendir() to read the directory list.
>
> This is on 5.6.10 as I have not upgraded my client's system to .11.
>
> However, I will try 2 reads and if blank, end.

How will that help?

If you're willing to skip some filenames, as your comment appears to imply, 
then why not use the fact that opendir() has returned the number of entries, 
and always loop that many times?  (And that code will continue to work even 
after getting the .11 update.)

> On Aug 3, 2011, at 12:44 PM, Kenneth Brody<kenbrody at spamcop.net>  wrote:
>
>> On 8/3/2011 12:02 PM, Richard Kreiss wrote:
>> [...]
>>> There are 1549 files in the directory.  However, the program only read half of them.
>> [...]
>>> 31  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
>>> loop_fi◄ If:
>>>         Then: qa=nextdir()
>>> 32  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
>>>         ◄ If: qa = ""
>>>         Then: END
>> [...]
>>
>> I'm not sure what this has to do with IMPORT, as stated in the subject line.  However, you don't say what version of filePro you are using.  This is from the 5.6.11 readme:
>>
>>> (All) #1151
>>>
>>>     On some platforms, it was possible for opendir() to reurn a list of
>>>     filenames of the correct length, but which contained some blank
>>>     entries instead of the names.

-- 
Kenneth Brody


More information about the Filepro-list mailing list