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 473

Summary: Built In Directory tools -- addition.
Product: SDL Reporter: Kenney Phillis Jr <kphillisjr>
Component: fileAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED WONTFIX QA Contact: Sam Lantinga <slouken>
Severity: API change    
Priority: P2    
Version: don't know   
Hardware: All   
OS: All   

Description Kenney Phillis Jr 2007-07-31 16:04:01 UTC
Pretty much add a few new functions that help with listing/getting directory paths.

//Translators for Pre Mac OSX
char*  sdl_win32tomac(char* file);
char*  sdl_unixtomac(char* file);
// unix path conversion.
char*  sdl_mactoUnix(char* file);
char*  sdl_win32tounix(char* file);
// win32 path conversion.
char*  sdl_UnixtoWin32(char* file);
char*  sdl_MacToWin32(char* file);

//file listing functions.
char** sdl_listfiles(char* directory); // list of all files in a directory.
char** sdl_listfiles(char* directory, char* ext); // list of all files in a directory of a specified extension.
char** sdl_listdirectories(char* directory);// list directories in specified path.
Comment 1 Sam Lantinga 2009-09-20 22:51:52 UTC
We'll keep this in mind for SDL 1.3, thanks!