emscripten-core/emscripten

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

Open

#15.245 geöffnet am 6. Okt. 2021

Auf GitHub ansehen
 (19 Kommentare) (0 Reaktionen) (1 zugewiesene Person)C++ (3.519 Forks)batch import
good first bughelp wanted

Repository-Metriken

Stars
 (27.361 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 19T 10h) (147 gemergte PRs in 30 T)

Beschreibung

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?

Contributor Guide