Page 1 of 1

getFileList / removeFileArchive

Posted: Sat Jul 09, 2011 2:38 pm
by stefbuet
This is not really a bug but here is the problem :

You have an archive "myARCHIVE.zip" (note cap letters)
You can load it with no caps letters, but you won't be able to unload it later with cap letters :

Code: Select all

 
fs->addFileArchive("myARCHIVE.zip"); //ok
fs->removeFileArchive("myARCHIVE.zip"); //ok
//ok
 
fs->addFileArchive("myarchive.zip"); //ok
fs->removeFileArchive("myARCHIVE.zip"); //fail
//fail
 
fs->addFileArchive("myarchive.zip");//ok
fs->removeFileArchive("myarchive.zip"); //ok
//ok
 
I'm using fs->createFileList to get filenames of some archives to be loaded. Filenames created in the filelist are all lowered letters, so no more cap letters. However I was using real filenames with caps letters to try to remove archives, but it failed as the previous code explains it.

Re: getFileList / removeFileArchive

Posted: Mon Jul 11, 2011 2:08 pm
by bitplane
I guess it's because the VFS doesn't know if the real filesystem is case insensitive or not. It's certainly a real bug though, specially on Linux, OSX and mobile devices.