emscripten-core/emscripten

Files uploading into Virtual File System with -s CASE_INSENSITIVE_FS=1

Open

#15,245 建立於 2021年10月6日

在 GitHub 查看
 (19 留言) (0 反應) (1 負責人)C++ (3,519 fork)batch import
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:

  1. Why is the case_insensitive flag not applied to uploading file function (function used: "FS_createdDataFile")
  2. Is the case sensitive behavior of uploading file function intended within the case_insensitive virtual file system?

貢獻者指南