public NativeSyncProvider(IFileSystem fileSystem, INetworkConnectionFactory connectionFactory, WindowsFileSystemOptions options) { this.FileSystem = fileSystem; this.ConnectionFactory = connectionFactory; this.UserName = options.UserName; this.Password = options.Password; if (this.UserName == null) this.BaseDirectory = options.Path.WithTrailingPathSeparator(); else this.BaseDirectory = options.Path.WithoutTrailingPathSeparator(); }
public NativeSyncProvider(WindowsFileSystemOptions options) : this(new FileSystem(), new NetworkConnectionFactory(), options) { }