/// copy a file
/// \return true when file/directory is writable (write test file)
- /// \param overwrite: set to true if we should erase the \c target
- /// file if it exists,
- bool copyTo(FileName const & target, bool overwrite = false) const;
+ /// \warning This methods has different semantics when system level
+ /// copy command, it will overwrite the \c target file if it exists,
+ bool copyTo(FileName const & target) const;
/// remove pointed file.
/// \return true on success.
/// Creates pointed directory.
/// \return true on success.
bool createDirectory(int permissions) const;
+ /// Creates pointed path.
+ /// \return true on success.
+ bool createPath() const;
/// Get the contents of a file as a huge docstring.
/// \param encoding defines the encoding of the file contents.