}
+bool FileName::renameTo(FileName const & name) const
+{
+ bool success = QFile::rename(d->fi.absoluteFilePath(), name.d->fi.absoluteFilePath());
+ if (!success)
+ LYXERR0("Could not copy file " << *this << " to " << name);
+ return success;
+}
+
+
string FileName::toFilesystemEncoding() const
{
QByteArray const encoded = QFile::encodeName(d->fi.absoluteFilePath());
/// \retrun true on success.
bool removeFile() const;
+ /// rename pointed file.
+ /// \retrun true on success.
+ bool renameTo(FileName const & target) const;
+
+
/// remove directory and all contents, returns true on success
bool destroyDirectory() const;
/// Creates directory. Returns true on success