namespace lyx {
namespace support {
+/// Defined in "FileNameList.h".
+class FileNameList;
+
/**
* Class for storing file names.
* The file name may be empty. If it is not empty it is an absolute path.
bool isWritable() const;
/// return true when file/directory is writable (write test file)
bool isDirWritable() const;
+ /// \return list other files in the directory having optional extension 'ext'.
+ FileNameList dirList(std::string const & ext) const;
/// copy a file
/// \return true when file/directory is writable (write test file)
/// \retrun true on success.
bool removeFile() const;
+ /// rename pointed file.
+ /// \retrun true on success.
+ bool renameTo(FileName const & target) const;
+
+ /// change mode of pointed file.
+ /// \retrun true on success.
+ bool changeMode(unsigned long int mode) const;
+
/// remove directory and all contents, returns true on success
bool destroyDirectory() const;
/// Creates directory. Returns true on success
bool operator==(DocFileName const &, DocFileName const &);
bool operator!=(DocFileName const &, DocFileName const &);
-
} // namespace support
} // namespace lyx