File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 5
5
<Description >Bonsai System Library containing reactive infrastructure to interface with the underlying operating system.</Description >
6
6
<PackageTags >Bonsai Rx Reactive Extensions IO Serial Port Resources</PackageTags >
7
7
<TargetFrameworks >net462;netstandard2.0</TargetFrameworks >
8
- <VersionPrefix >2.8.0 </VersionPrefix >
8
+ <VersionPrefix >2.8.1 </VersionPrefix >
9
9
</PropertyGroup >
10
10
<ItemGroup Condition =" '$(TargetFramework)' == 'netstandard2.0'" >
11
11
<PackageReference Include =" System.IO.Ports" Version =" 6.0.0" />
Original file line number Diff line number Diff line change @@ -135,10 +135,10 @@ protected IObservable<TElement> Process<TElement>(
135
135
return Observable . Create < TElement > ( observer =>
136
136
{
137
137
PathHelper . EnsureDirectory ( fileName ) ;
138
- fileName = PathHelper . AppendSuffix ( fileName , Suffix ) ;
139
- if ( File . Exists ( fileName ) && ! Overwrite )
138
+ var filePath = PathHelper . AppendSuffix ( fileName , Suffix ) ;
139
+ if ( File . Exists ( filePath ) && ! Overwrite )
140
140
{
141
- throw new IOException ( string . Format ( "The file '{0}' already exists." , fileName ) ) ;
141
+ throw new IOException ( string . Format ( "The file '{0}' already exists." , filePath ) ) ;
142
142
}
143
143
144
144
var disposable = new WriterDisposable < TWriter > ( Buffered ) ;
@@ -152,7 +152,7 @@ protected IObservable<TElement> Process<TElement>(
152
152
var runningWriter = disposable . Writer ;
153
153
if ( runningWriter == null )
154
154
{
155
- runningWriter = disposable . Writer = CreateWriter ( fileName , input ) ;
155
+ runningWriter = disposable . Writer = CreateWriter ( filePath , input ) ;
156
156
}
157
157
158
158
Write ( runningWriter , input ) ;
Original file line number Diff line number Diff line change @@ -162,8 +162,8 @@ protected IObservable<TElement> Process<TElement>(
162
162
try
163
163
{
164
164
if ( ! path . StartsWith ( @"\\" ) ) PathHelper . EnsureDirectory ( path ) ;
165
- path = PathHelper . AppendSuffix ( path , Suffix ) ;
166
- stream = CreateStream ( path , Overwrite , cancellationSource . Token ) ;
165
+ var streamPath = PathHelper . AppendSuffix ( path , Suffix ) ;
166
+ stream = CreateStream ( streamPath , Overwrite , cancellationSource . Token ) ;
167
167
disposable . Writer = CreateWriter ( stream ) ;
168
168
}
169
169
catch ( Exception ex )
You can’t perform that action at this time.
0 commit comments