diff options
author | aunsane <aunsane@gmail.com> | 2018-05-01 00:33:11 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2018-05-01 00:33:11 +0300 |
commit | 179f34e621e0c847e262abeea06c65bb83ffdbd5 (patch) | |
tree | 4390714c8afdbb1eb99288f595d99464dfe2b81d /plugins/CloudFile/src/Services/microsoft_service.cpp | |
parent | 11c2c06d4a603956a51349b3f0c5b7e0eabe744a (diff) |
CloudFile: fix for #1315
Diffstat (limited to 'plugins/CloudFile/src/Services/microsoft_service.cpp')
-rw-r--r-- | plugins/CloudFile/src/Services/microsoft_service.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/CloudFile/src/Services/microsoft_service.cpp b/plugins/CloudFile/src/Services/microsoft_service.cpp index db8acf7cc6..2843e66d0f 100644 --- a/plugins/CloudFile/src/Services/microsoft_service.cpp +++ b/plugins/CloudFile/src/Services/microsoft_service.cpp @@ -214,10 +214,8 @@ void COneDriveService::Upload(FileTransferParam *ftp) auto serverDictionary = ftp->GetServerDirectory(); std::string serverFolder = serverDictionary ? T2Utf(serverDictionary) : ""; if (!serverFolder.empty()) { - auto path = PreparePath(serverFolder); - folderId = CreateFolder(path); - - auto link = CreateSharedLink(path); + folderId = CreateFolder(serverFolder); + auto link = CreateSharedLink(folderId); ftp->AddSharedLink(link.c_str()); } |