Open main menu

Difference between revisions of "User talk:David corrales"

m
Line 340: Line 340:
* a not yet existing but valid path to a file/dir (which is neither readable nor writable, I guess).
* a not yet existing but valid path to a file/dir (which is neither readable nor writable, I guess).
Well, that's not really a brilliant observation ; I just wanted to make sure this will be considered in the design process [[User:Fingolfin|Fingolfin]] 00:22, 24 March 2007 (CET)
Well, that's not really a brilliant observation ; I just wanted to make sure this will be considered in the design process [[User:Fingolfin|Fingolfin]] 00:22, 24 March 2007 (CET)
'''Update 19/06''': It is now possible to discern all these cases correctly using exists(), isReadable() and isWritable().




Another thing: look at <code>engines/scumm/plugin.cpp</code> and the <code>searchFSNode()</code> function in there. It can be used to look for a given file(name) within a directory (ignoring case). It's a bit like getChild() only that it ignores the file name case, and is only used to check for the presence of a given file. This is a commonly used function, I think. Might be worse taking this into consideration for the FS API redesign  [[User:Fingolfin|Fingolfin]] 21:41, 3 April 2007 (CEST)
Another thing: look at <code>engines/scumm/plugin.cpp</code> and the <code>searchFSNode()</code> function in there. It can be used to look for a given file(name) within a directory (ignoring case). It's a bit like getChild() only that it ignores the file name case, and is only used to check for the presence of a given file. This is a commonly used function, I think. Might be worse taking this into consideration for the FS API redesign  [[User:Fingolfin|Fingolfin]] 21:41, 3 April 2007 (CEST)