Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/common/filesystembase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,9 @@ bool FileSystem::openAndSeekFileSharedRead(QFile *file, QString *errorOrNull, qi

QString FileSystem::joinPath(const QString& path, const QString& file)
{
Q_ASSERT(!path.isEmpty());
Q_ASSERT(!file.isEmpty());

if (path.isEmpty()) {
qCWarning(lcFileSystem).nospace() << "joinPath called with an empty path; returning file=" << file;
return QDir::toNativeSeparators(file);
Expand Down
6 changes: 4 additions & 2 deletions src/libsync/owncloudpropagator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1555,8 +1555,10 @@ void PropagateDirectory::slotSubJobsFinished(SyncFileItem::Status status)
if (const auto fileName = propagator()->fullLocalPath(_item->_file); FileSystem::fileExists(fileName)) {
permissionsChangeHelper(fileName);
}
if (const auto fileName = propagator()->fullLocalPath(_item->_renameTarget); !_item->_renameTarget.isEmpty() && FileSystem::fileExists(fileName)) {
permissionsChangeHelper(fileName);
if (!_item->_renameTarget.isEmpty()) {
if (const auto fileName = propagator()->fullLocalPath(_item->_renameTarget); FileSystem::fileExists(fileName)) {
permissionsChangeHelper(fileName);
}
}
}
catch (const std::filesystem::filesystem_error &e)
Expand Down
Loading