mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-25 13:55:47 +03:00
propagator: Do not check for case clash when renaming
Issue #1385 When renaming, we would normaly already have an error if the file already exist. And we want to allow the renaming to chang ethe case (Eg. "hello" -> "HELLO"
This commit is contained in:
parent
2e12acdf32
commit
dad8c1c27c
1 changed files with 0 additions and 7 deletions
|
@ -247,13 +247,6 @@ void PropagateLocalRename::start()
|
|||
qDebug() << "MOVE " << _propagator->_localDir + _item._file << " => " << _propagator->_localDir + _item._renameTarget;
|
||||
QFile file(_propagator->_localDir + _item._file);
|
||||
|
||||
if (_propagator->localFileNameClash(_item._renameTarget)) {
|
||||
// Fixme: the file that is the reason for the clash could be named here,
|
||||
// it would have to come out the localFileNameClash function
|
||||
done(SyncFileItem::NormalError, tr( "File %1 can not be renamed to %2 because of a local file name clash")
|
||||
.arg(QDir::toNativeSeparators(_item._file)).arg(QDir::toNativeSeparators(_item._renameTarget)) );
|
||||
return;
|
||||
}
|
||||
if (!file.rename(_propagator->_localDir + _item._file, _propagator->_localDir + _item._renameTarget)) {
|
||||
done(SyncFileItem::NormalError, file.errorString());
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue