emscripten-core/emscripten
在 GitHub 查看Files uploading into Virtual File System with -s CASE_INSENSITIVE_FS=1
Open
#15,245 创建于 2021年10月6日
good first bughelp wanted
仓库指标
- Star
- (27,361 star)
- PR 合并指标
- (平均合并 19天 10小时) (30 天内合并 147 个 PR)
描述
Hi, I did some testing experiment with the flag "-s CASE_INSENSITIVE_FS=1" and notice that the virtual file system allows loading of different files of same name but different caps letters. i.e. ABC.txt, AbC.txt."
During opening of both files, regardless of "ABC.txt" or "AbC.txt", the open file would always be the last file of the same name that is loaded. In this case is AbC.txt. I understand this is due to all filenames are converted into lower case names during the lookup of files.
(*edited to make questions more explicit) I have a few questions with regards to the uploading of files behavior:
- Why is the case_insensitive flag not applied to uploading file function (function used: "FS_createdDataFile")
- Is the case sensitive behavior of uploading file function intended within the case_insensitive virtual file system?