mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-24 14:05:58 +03:00
socketapi: if the filename is empty, it's actually /
This commit is contained in:
parent
8371e34d87
commit
561e3c780d
1 changed files with 4 additions and 3 deletions
|
@ -552,10 +552,11 @@ void SocketApi::command_RETRIEVE_FILE_STATUS(const QString& argument, SocketType
|
||||||
DEBUG << "folder offline or not watched:" << argument;
|
DEBUG << "folder offline or not watched:" << argument;
|
||||||
statusString = QLatin1String("NOP");
|
statusString = QLatin1String("NOP");
|
||||||
} else {
|
} else {
|
||||||
const QString file = argument.mid(syncFolder->path().length());
|
QString file = argument.mid(syncFolder->path().length());
|
||||||
SyncFileStatus fileStatus = SocketApiHelper::fileStatus(syncFolder, file, _excludes);
|
if( file.isEmpty() ) file = QLatin1String("/");
|
||||||
|
SyncFileStatus fStatus = this->fileStatus(syncFolder, file, _excludes);
|
||||||
|
|
||||||
statusString = fileStatus.toSocketAPIString();
|
statusString = fStatus.toSocketAPIString();
|
||||||
}
|
}
|
||||||
|
|
||||||
QString message = QLatin1String("STATUS:")+statusString+QLatin1Char(':')
|
QString message = QLatin1String("STATUS:")+statusString+QLatin1Char(':')
|
||||||
|
|
Loading…
Reference in a new issue