getFileList / removeFileArchive
Posted: Sat Jul 09, 2011 2:38 pm
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 :
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.
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