FileSwitch wildcards to lowlevel?
Julie Stamp (8365) 474 posts |
Hello, does anyone know if FileSwitch passes any wildcards (*, #) at all to the filing system any more? I had a quick go but every request came through to the FS without wildcards, doing directory enumeration itself. If so some examples of things that will make it through would be appreciated! |
David J. Ruck (33) 1636 posts |
Did it ever? |
Julie Stamp (8365) 474 posts |
I don’t know, but ResourceFS and PipeFS both have code to deal with it. I’m hoping someone can tell me that is dead code. |
Rick Murray (539) 13851 posts |
Quote from PRM2: You can add filing systems to RISC OS. You must write them as relocatable modules. There are two ways of doing so:● by adding a module that FileSwitch communicates with directly ● by adding a secondary module to FileCore; FileSwitch communicates with FileCore, which then communicates with your module. Perhaps this may explain the difference? |
Rick Murray (539) 13851 posts |
The docs for FileSwitch FSs say When a wildcarded pathname is specified, the operation should be applied to all matching leafnames (p2-540). Edit: Looks like FSEntry_File 1-4,255 can be passed wildcarded filenames. |
Jeff Doggett (257) 234 posts |
There is no code in Fat32fs to deal with wildcarded filenames as I was never able to get the OS to actually pass one through. |