]> git.lyx.org Git - lyx.git/blobdiff - src/support/FileName.h
Transfer tempName() implementation to FileName.
[lyx.git] / src / support / FileName.h
index 16de028ccb0ec3b549f27cb55376ebeaa6071618..dd3932a2dde336e678dc095d971cdfb6f39e6d3c 100644 (file)
@@ -90,9 +90,9 @@ public:
        
        /// 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.
@@ -120,6 +120,9 @@ public:
        /// 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.