Re: Directory entries enumeration - FindDirEntry ?
Mark Smith <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.nspr |
|---|---|
| Message-ID | <[email protected]> |
Anton Kostov wrote: > I am porting my project to NSPR, and came to a showstopper, since I > need to enumerate the contents of a Directory, and can't find any API > for that. Maybe that's because these APO are intended to be used > transparently with sockets etc. but still there are some specific I/O > for the filesystem. > > How can this be achieved in NSPR? (i.e. in Win32 there are > FindFile(...), FindNext(...), ... ) I think you are looking for PR_OpenDir(), PR_ReadDir(), and PR_CloseDir(). See: Directory I/O Functions http://www.mozilla.org/projects/nspr/reference/html/priofnc.html#18353 -- Mark Smith [email protected]