We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2234

Summary: Need a RWops-like way to get Directory listings
Product: SDL Reporter: Mike Kasprzak <mike>
Component: fileAssignee: Ryan C. Gordon <icculus>
Status: ASSIGNED --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.1   
Hardware: All   
OS: All   

Description Mike Kasprzak 2013-11-14 05:05:52 UTC
This is mainly necessary for Android.

The SDL_RWFromXX (RWops) family of function can be used to read files stored in an Android APK file. The APK is like (is) as ZIP file though. Typical directory listing functions are of no use here. SDL_GetBasePath() is also not helpful here.


Some Starting Points:

On Linux/Mac(?) you use opendir, dirent* types, readdir, and closedir.

On Windows you use _findfirst (with *.*), _finddata_t types, _findnext, and _findclose.
http://msdn.microsoft.com/en-us/library/kda16keh.aspx

Not sure about WinRT, but it's probably different.
Comment 1 Sam Lantinga 2017-08-15 04:44:32 UTC
Yes please!