#7896 add support for symlink creation by the LyX binary itself

This commit is contained in:
Stephan Witt 2015-06-03 22:08:21 +02:00
parent cd046f0e0c
commit bfc7c4d379
2 changed files with 7 additions and 0 deletions

View File

@ -490,6 +490,12 @@ bool FileName::chdir() const
}
bool FileName::link(FileName const & name) const
{
return QFile::link(toqstr(absFileName()), toqstr(name.absFileName()));
}
unsigned long checksum_ifstream_fallback(char const * file)
{
unsigned long result = 0;

View File

@ -143,6 +143,7 @@ public:
/// the symlink will be destroyed).
/// \return true on success.
bool moveTo(FileName const & target) const;
bool link(FileName const & name) const;
/// change mode of pointed file.
/// This methods does nothing and return true on platforms that does not