Dokan changes
This commit is contained in:
@@ -26,4 +26,23 @@ SiaApiError CSiaApi::_CSiaRenter::DeleteFile(const String& siaPath)
|
||||
SiaApiError CSiaApi::_CSiaRenter::DownloadFile(const String& siaPath, const String& location) const
|
||||
{
|
||||
return SiaApiError::NotImplemented;
|
||||
}
|
||||
|
||||
SiaApiError CSiaApi::_CSiaRenter::QueueUploadFile(const String& siaPath, const String& filePath)
|
||||
{
|
||||
return SiaApiError::NotImplemented;
|
||||
}
|
||||
|
||||
SiaApiError CSiaApi::_CSiaRenter::GetFileTree(CSiaFileTreePtr& siaFileTree) const
|
||||
{
|
||||
SiaApiError ret = SiaApiError::RequestError;
|
||||
siaFileTree.reset(new CSiaFileTree(_siaCurl));
|
||||
json result;
|
||||
if (API_SUCCESS(SiaCurlError, _siaCurl.Get(L"/renter/files", result)))
|
||||
{
|
||||
siaFileTree->BuildTree(result);
|
||||
ret = SiaApiError::Success;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
Reference in New Issue
Block a user