async하게 수정

This commit is contained in:
2018-06-07 15:33:33 +09:00
parent 663d2977ed
commit 9140673315
11 changed files with 412 additions and 317 deletions

View File

@@ -1067,7 +1067,7 @@ namespace FluentFTP {
// seek to required offset
fileData.Position = offset;
} catch (Exception ex2) {
} catch (Exception) {
}
}
@@ -1208,12 +1208,15 @@ namespace FluentFTP {
Stream upStream = null;
try {
long offset = 0;
bool checkFileExistsAgain = false;
//bool checkFileExistsAgain = false;
// check if the file exists, and skip, overwrite or append
if (existsMode == FtpExists.NoCheck) {
checkFileExistsAgain = true;
} else {
if (existsMode == FtpExists.NoCheck)
{
//checkFileExistsAgain = true;
}
else
{
if (!fileExistsKnown) {
fileExists = await FileExistsAsync(remotePath);
}
@@ -1254,7 +1257,7 @@ namespace FluentFTP {
// seek to required offset
fileData.Position = offset;
} catch (Exception ex2) {
} catch (Exception) {
}
}