a trivial thing, but it caused me an hour searching:

thi suse of the function file_scan_directory() found only those files with lower case ending:

$contenido1 = file_scan_directory(
    variable_get('slideshowcs_folderpath', $defaultpath),
    "jpg$|png$|gif$",
    array('.', '..', 'CVS'),
    0, // Callback (0 for no callback).
    FALSE,
    'filename',
    0
    ) ;

I think upperCase / lowerCase should be ignored in file_scan_directory().

I helped myself with hacking this into the module:

"jpg$|png$|gif$|JPG$|PNG$|GIF$",

but that is no solution. actually i can only use lowercase file names with this module ):

CommentFileSizeAuthor
#2 file_scan_directory_insensitive.patch912 bytesAnonymous (not verified)

Comments

Anonymous’s picture

What file is this in?

Anonymous’s picture

Title: file_scan_directory - upper case or lower case » file_scan_directory - case insensitive scans
Version: 6.4 » 7.x-dev
Status: Active » Needs review
StatusFileSize
new912 bytes

Let's add some meat to this request and attach a patch.

drewish’s picture