Got rid of Common::File::addDefaultDirectory, instead implemented the solution proposed in "Case agnostic handling for directories (and files)" on -devel.
svn-id: r44266
This commit is contained in:
parent
75113ad5f3
commit
c50940bbf4
13 changed files with 136 additions and 81 deletions
|
@ -32,16 +32,6 @@
|
|||
|
||||
namespace Common {
|
||||
|
||||
void File::addDefaultDirectory(const String &directory) {
|
||||
FSNode dir(directory);
|
||||
addDefaultDirectory(dir);
|
||||
}
|
||||
|
||||
void File::addDefaultDirectory(const FSNode &dir) {
|
||||
if (dir.exists() && dir.isDirectory())
|
||||
SearchMan.addDirectory(dir.getPath(), dir);
|
||||
}
|
||||
|
||||
File::File()
|
||||
: _handle(0) {
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue