| [ Return to Bugs & Features | Roadmap 1.1 | SVN ⇄ GIT ]
STR #854
Application: | FLTK Library |
Status: | 1 - Closed w/Resolution |
Priority: | 2 - Low, e.g. a documentation error or undocumented side-effect |
Scope: | 2 - Specific to an operating system |
Subsystem: | Core Library |
Summary: | WIN32 fl_filename_list needs trailing / |
Version: | 1.1-current |
Created By: | Portale |
Assigned To: | matt |
Fix Version: | 1.1.7 (SVN: v4512) |
Update Notification: | |
Trouble Report Files:
No files
Trouble Report Comments:
|
#1 | Portale 08:11 May 13, 2005 |
| The documentation http://www.fltk.org/documentation.php/doc-1.1/functions.html#fl_filename_list promises that the folder name does not need to have a trailing slash. But on Windows XP it is needed. Otherwise only one folder (the one that was passed to fl_filename_list) will be returned. | |
|
#2 | Portale 13:47 May 13, 2005 |
| Also it seems that the returned folders have a trailing slash (not a backslash), while on OSX I they are without slash. | |
|
#3 | mike 06:31 May 19, 2005 |
| The fl_filename_list function should handle with or without the trailing slash; that is a bug and should be fixed.
The trailing slash in the returned filenames is an optimization for Windows since the FindFile API returns the file type along with the name, and stat() is VERY slow on Windows.
We *could* change the behavior on POSIX systems to do a stat() and add the trailing slash - what do other people think about this? | |
|
#4 | matt 13:04 Aug 15, 2005 |
| Fixed in Subversion repository. | |
[ Return to Bugs & Features ]
|
| |