Hi Glenn,

From the manual page for the rewinddir() API:

"If the contents of the directory have changed since the directory was opened and rewinddir() is called, subsequent calls to readdir() read the changed contents."

http://publib.boulder.ibm.com/infocenter/iseries/v5r3/topic/apis/rewinddi.htm


Glenn Gundermann wrote:
If I open and read all the contents of a directory for display on the
screen, if the user presses F5=Refresh, should I close and re-open the
directory or can I use the rewinddir()? I want to make sure my list is
current with new files being in the list and removed files not.



This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.