Beispiel #1
0
        private async Task FtpConnectAsync(FluentFTP.FtpClient client)
        {
            var file = await ApplicationData.Current.TemporaryFolder.CreateFileAsync("log.log", CreationCollisionOption.OpenIfExists);

            FluentFTP.FtpTrace.LogToFile = file.Path;

            await client.ConnectAsync();

            if (client.Capabilities.HasFlag(FluentFTP.FtpCapability.UTF8))
            {
                client.Encoding = System.Text.Encoding.UTF8;
            }
            else
            {
                client.Encoding = preferredEncoding;
            }
        }