OSspecific: isDir(), isFile() instead of dir(), file()

This commit is contained in:
Mark Olesen
2009-02-02 16:50:18 +01:00
parent 91e12bc50f
commit e5c5829244
30 changed files with 85 additions and 85 deletions

View File

@ -63,7 +63,7 @@ int main(int argc, char *argv[])
// determine the processor count directly
label nProcs = 0;
while (dir(args.path()/(word("processor") + name(nProcs))))
while (isDir(args.path()/(word("processor") + name(nProcs))))
{
++nProcs;
}
@ -383,7 +383,7 @@ int main(int argc, char *argv[])
// the master processor.
fileName uniformDir0 = databases[0].timePath()/"uniform";
if (dir(uniformDir0))
if (isDir(uniformDir0))
{
cp(uniformDir0, runTime.timePath());
}