Moving files works (via the clumsy dialog).

This commit is contained in:
David Given
2022-09-07 00:14:47 +02:00
parent 922715480e
commit 079c4c955c
6 changed files with 506 additions and 11 deletions

View File

@@ -190,11 +190,11 @@ public:
void moveFile(const Path& oldPath, const Path& newPath) override
{
mount();
auto oldPathStr = oldPath.to_str();
auto newPathStr = newPath.to_str();
FRESULT res = f_rename(oldPathStr.c_str(), newPathStr.c_str());
throwError(res);
mount();
auto oldPathStr = oldPath.to_str();
auto newPathStr = newPath.to_str();
FRESULT res = f_rename(oldPathStr.c_str(), newPathStr.c_str());
throwError(res);
}
private: