Do you think it would be wise to get around some safemode issues by rewriting the usage of these two functions?
Generally, glob() might be unsupported or disabled (security thru obscurity, grrr...) and its functionality could be mimicked.
The thing with mkdir() is a bit more tricky, I've run into that recently. All of the blogs.dir/id/files and similar created by MU were problematic at some hosts. Even though they were created with 777 and were is_writable, directories and/or files couldn't be written there (safemod, mismatching owners) ... weird. (Maybe the sticky gid bit could work around that.) After I deleted the directories and re-created them with 777 via FTP, it all worked like a charm. So I'm thinking about using ftp_* functions instead of mkdir() when creating them. (Or having them created in batch via FTP instead of the current on-demand system.)
Does that sound like an overkill?