File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1230,7 +1230,7 @@ void AppController::getDirectoryContentAction()
12301230 const QFileInfo fileInfo = it.nextFileInfo ();
12311231 QJsonObject fileObject
12321232 {
1233- {KEY_FILE_METADATA_NAME, fileInfo.fileName ()},
1233+ {KEY_FILE_METADATA_NAME, Path ( fileInfo.fileName ()). toString ()},
12341234 {KEY_FILE_METADATA_CREATION_DATE, Utils::DateTime::toSecsSinceEpoch (fileInfo.birthTime ())},
12351235 {KEY_FILE_METADATA_LAST_ACCESS_DATE, Utils::DateTime::toSecsSinceEpoch (fileInfo.lastRead ())},
12361236 {KEY_FILE_METADATA_LAST_MODIFICATION_DATE, Utils::DateTime::toSecsSinceEpoch (fileInfo.lastModified ())},
@@ -1250,7 +1250,7 @@ void AppController::getDirectoryContentAction()
12501250 }
12511251 else
12521252 {
1253- ret.append (it.next ());
1253+ ret.append (Path ( it.next ()). toString ());
12541254 }
12551255 }
12561256 setResult (ret);
You can’t perform that action at this time.
0 commit comments