|
|
@ -98,6 +98,8 @@ namespace ServiceLib.Handler |
|
|
|
} |
|
|
|
} |
|
|
|
await TryCreateDir(); |
|
|
|
await TryCreateDir(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try |
|
|
|
|
|
|
|
{ |
|
|
|
var testName = "readme_test"; |
|
|
|
var testName = "readme_test"; |
|
|
|
var myContent = new StringContent(testName); |
|
|
|
var myContent = new StringContent(testName); |
|
|
|
var result = await _client.PutFile($"{_webDir}/{testName}", myContent); |
|
|
|
var result = await _client.PutFile($"{_webDir}/{testName}", myContent); |
|
|
@ -109,9 +111,14 @@ namespace ServiceLib.Handler |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
SaveLog(result.Description); |
|
|
|
SaveLog(result.Description); |
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
catch (Exception ex) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
SaveLog(ex); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public async Task<bool> PutFile(string fileName) |
|
|
|
public async Task<bool> PutFile(string fileName) |
|
|
|
{ |
|
|
|
{ |
|
|
|