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

Path & Poco::Path::makeFile (  ) 

If the path contains a filename, the filename is appended to the directory list and cleared. Thus the resulting path always refers to a directory.

Definition at line 320 of file Path.cpp.

References setExtension().

Referenced by Poco::Net::FTPStreamFactory::open().

{
      if (!_dirs.empty() && _name.empty())
      {
            _name = _dirs.back();
            _dirs.pop_back();
#if defined(POCO_OS_FAMILY_VMS)
            setExtension("DIR");
#endif
      }
      return *this;
}


Generated by  Doxygen 1.6.0   Back to index