bool FileName::changePermission(unsigned long int mode) const
{
- if (!fname.isWritable()) {
+ if (!isWritable()) {
LYXERR0("File " << *this << " is not writable!");
return false;
}
- if (!chmod(fname, mode)) {
+ if (!chmod(*this, mode)) {
LYXERR0("File " << *this << " cannot be changed to " << mode << " mode!");
return false;
}
/// change mode of pointed file.
/// \retrun true on success.
- bool changeMode(unsigned long int mode) const;
+ bool changePermission(unsigned long int mode) const;
/// remove directory and all contents, returns true on success
bool destroyDirectory() const;