Logo Search packages:      
Sourcecode: poco version File versions  Download package

bool Poco::Path::find ( StringVec::const_iterator  it,
StringVec::const_iterator  end,
const std::string &  name,
Path path 
) [static]

Fills the vector with all filesystem roots available on the system. On Unix, there is exactly one root, "/". On Windows, the roots are the drive letters. On OpenVMS, the roots are the mounted disks.

Definition at line 607 of file Path.cpp.

References Poco::File::exists(), makeDirectory(), and resolve().

Referenced by find().

{
      while (it != end)
      {
            Path p(*it);
            p.makeDirectory();
            p.resolve(Path(name));
            File f(p);
            if (f.exists())
            {
                  path = p;
                  return true;
            }
            ++it;
      }
      return false;
}


Generated by  Doxygen 1.6.0   Back to index