Skip to content

Commit

Permalink
Use GetListingAsync in ftp client
Browse files Browse the repository at this point in the history
  • Loading branch information
ManlyMarco committed Jan 21, 2020
1 parent bdf4088 commit 9de53be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions KKManager.SB3UGS/SB3UGS_Initializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ private static void Initialize()
var directoryName = new DirectoryInfo(Path.Combine(assLocation.FullName, "SB3UGS"));
_pluginDirName = new DirectoryInfo(Path.Combine(directoryName.FullName, "plugins"));

// bug this can sometimes fail to extract or to load the dlls
if (!_pluginDirName.Exists)
{
if (directoryName.Exists)
Expand Down
2 changes: 1 addition & 1 deletion KKManager.Updater/Sources/FtpUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public override void Dispose()
public override async Task<List<UpdateTask>> GetUpdateItems(CancellationToken cancellationToken)
{
await Connect();
_allNodes = _client.GetListing("/", FtpListOption.Recursive | FtpListOption.Size);
_allNodes = await _client.GetListingAsync("/", FtpListOption.Recursive | FtpListOption.Size);
return await base.GetUpdateItems(cancellationToken);
}

Expand Down

0 comments on commit 9de53be

Please sign in to comment.