Skip to content

Commit 68cecc9

Browse files
committed
v6.1.18092.0-Beta
1 parent 3a526bc commit 68cecc9

File tree

12 files changed

+33
-19
lines changed

12 files changed

+33
-19
lines changed

Common/Common.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
<Platforms>AnyCPU;x64</Platforms>
1111
</PropertyGroup>
1212
<ItemGroup>
13-
<PackageReference Include="ITHit.FileSystem" Version="6.1.17328.0-Beta" />
13+
<PackageReference Include="ITHit.FileSystem" Version="6.1.18092.0-Beta" />
1414
</ItemGroup>
1515
</Project>

Common/StreamCopy.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System.Text;
55
using System.Threading;
66
using System.Threading.Tasks;
7+
using ITHit.FileSystem.Exceptions;
78

89
namespace ITHit.FileSystem.Samples.Common
910
{
@@ -12,7 +13,6 @@ namespace ITHit.FileSystem.Samples.Common
1213
/// </summary>
1314
public static class StreamCopy
1415
{
15-
1616
/// <summary>
1717
/// Asynchronously copies specified number of bytes from current stream to destination stream, using a specified buffer size.
1818
/// </summary>
@@ -31,6 +31,11 @@ public static async Task CopyToAsync(this Stream source, Stream destination, int
3131
await destination.WriteAsync(buffer, 0, read, cancellationToken);
3232
count -= read;
3333
}
34+
35+
if (count > 0)
36+
{
37+
throw new CloudFileException("Source file was modified");
38+
}
3439
}
3540
}
3641
}

Windows/Common/Core/Common.Windows.Core.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
<PackageReference Include="Microsoft.Windows.SDK.Contracts" Version="10.0.19041.1" />
2121
</ItemGroup>
2222
<ItemGroup>
23-
<PackageReference Include="ITHit.FileSystem.Windows.Package" Version="6.1.17328.0-Beta" />
24-
<PackageReference Include="ITHit.FileSystem.Windows" Version="6.1.17328.0-Beta" />
23+
<PackageReference Include="ITHit.FileSystem.Windows.Package" Version="6.1.18092.0-Beta" />
24+
<PackageReference Include="ITHit.FileSystem.Windows" Version="6.1.18092.0-Beta" />
2525
<ProjectReference Include="..\..\..\Common\Common.csproj" />
2626
</ItemGroup>
2727
</Project>

Windows/Common/VirtualDrive/Common.Windows.VirtualDrive.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<Platforms>AnyCPU;x64</Platforms>
1010
</PropertyGroup>
1111
<ItemGroup>
12-
<PackageReference Include="ITHit.FileSystem.Windows" Version="6.1.17328.0-Beta" />
12+
<PackageReference Include="ITHit.FileSystem.Windows" Version="6.1.18092.0-Beta" />
1313
<ProjectReference Include="..\..\..\Common\Common.csproj" />
1414
<ProjectReference Include="..\Core\Common.Windows.Core.csproj" />
1515
</ItemGroup>

Windows/Common/VirtualDrive/VirtualEngineBase.cs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,19 +69,25 @@ public override async Task<bool> FilterAsync(SyncDirection direction, OperationT
6969

7070
if (await new ZipFilter().FilterAsync(direction, operationType, path, itemType, newPath))
7171
{
72-
LogDebug($"{nameof(ZipFilter)} filtered {operationType}", path, newPath, operationContext);
72+
Logger.LogDebug($"{nameof(ZipFilter)} filtered {operationType}", path, newPath, operationContext);
7373
return true;
7474
}
7575

7676
if (await new MsOfficeFilter().FilterAsync(direction, operationType, path, itemType, newPath))
7777
{
78-
LogDebug($"{nameof(MsOfficeFilter)} filtered {operationType}", path, newPath, operationContext);
78+
Logger.LogDebug($"{nameof(MsOfficeFilter)} filtered {operationType}", path, newPath, operationContext);
7979
return true;
8080
}
8181

8282
if (await new AutoCadFilter().FilterAsync(direction, operationType, path, itemType, newPath))
8383
{
84-
LogDebug($"{nameof(AutoCadFilter)} filtered {operationType}", path, newPath, operationContext);
84+
Logger.LogDebug($"{nameof(AutoCadFilter)} filtered {operationType}", path, newPath, operationContext);
85+
return true;
86+
}
87+
88+
if (await new ErrorStatusFilter().FilterAsync(direction, operationType, path, itemType, newPath))
89+
{
90+
Logger.LogDebug($"{nameof(ErrorStatusFilter)} filtered {operationType}", path, newPath, operationContext);
8591
return true;
8692
}
8793

Windows/VirtualDrive/VirtualDrive.ShellExtension/VirtualDrive.ShellExtension.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<PackageReference Include="System.Drawing.Common" Version="6.0.0" />
2020
</ItemGroup>
2121
<ItemGroup>
22-
<PackageReference Include="ITHit.FileSystem.Windows.ShellExtension" Version="6.1.17328.0-Beta" />
22+
<PackageReference Include="ITHit.FileSystem.Windows.ShellExtension" Version="6.1.18092.0-Beta" />
2323
</ItemGroup>
2424
<ItemGroup>
2525
<None Update="log4net.config">

Windows/VirtualDrive/VirtualDrive/VirtualDrive.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ This is an advanced project with ETags support, Microsoft Office documents editi
4040
<PackageReference Include="System.Drawing.Common" Version="6.0.0" />
4141
</ItemGroup>
4242
<ItemGroup>
43-
<PackageReference Include="ITHit.FileSystem.Windows.Package" Version="6.1.17328.0-Beta" />
43+
<PackageReference Include="ITHit.FileSystem.Windows.Package" Version="6.1.18092.0-Beta" />
4444
<ProjectReference Include="..\..\..\Common\Common.csproj" />
4545
<ProjectReference Include="..\..\Common\VirtualDrive\Common.Windows.VirtualDrive.csproj" />
4646
</ItemGroup>

Windows/VirtualFileSystem/VirtualEngine.cs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,25 @@ public override async Task<bool> FilterAsync(SyncDirection direction, OperationT
5151

5252
if (await new ZipFilter().FilterAsync(direction, operationType, path, itemType, newPath))
5353
{
54-
LogDebug($"{nameof(ZipFilter)} filtered {operationType}", path, newPath, operationContext);
54+
Logger.LogDebug($"{nameof(ZipFilter)} filtered {operationType}", path, newPath, operationContext);
5555
return true;
5656
}
5757

5858
if (await new MsOfficeFilter().FilterAsync(direction, operationType, path, itemType, newPath))
5959
{
60-
LogDebug($"{nameof(MsOfficeFilter)} filtered {operationType}", path, newPath, operationContext);
60+
Logger.LogDebug($"{nameof(MsOfficeFilter)} filtered {operationType}", path, newPath, operationContext);
6161
return true;
6262
}
6363

6464
if (await new AutoCadFilter().FilterAsync(direction, operationType, path, itemType, newPath))
6565
{
66-
LogDebug($"{nameof(AutoCadFilter)} filtered {operationType}", path, newPath, operationContext);
66+
Logger.LogDebug($"{nameof(AutoCadFilter)} filtered {operationType}", path, newPath, operationContext);
67+
return true;
68+
}
69+
70+
if (await new ErrorStatusFilter().FilterAsync(direction, operationType, path, itemType, newPath))
71+
{
72+
Logger.LogDebug($"{nameof(ErrorStatusFilter)} filtered {operationType}", path, newPath, operationContext);
6773
return true;
6874
}
6975

Windows/VirtualFileSystem/appsettings.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@
2626
"UserFileSystemRootPath": "%USERPROFILE%\\VFSv6\\",
2727

2828

29-
// Automatically lock the file in the remote storage when a file handle is being opened for writing, unlock on close.
30-
"AutoLock": true,
31-
32-
3329
// To test performance:
3430
// 1. Compile the project in the release mode.
3531
// 2. Run without debugger arrached (Ctrl-F5).

Windows/WebDAVDrive/WebDAVDrive.ShellExtension/WebDAVDrive.ShellExtension.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<Copyright>IT HIT LTD.</Copyright>
1313
</PropertyGroup>
1414
<ItemGroup>
15-
<PackageReference Include="ITHit.FileSystem.Windows.ShellExtension" Version="6.1.17328.0-Beta" />
15+
<PackageReference Include="ITHit.FileSystem.Windows.ShellExtension" Version="6.1.18092.0-Beta" />
1616
</ItemGroup>
1717
<ItemGroup>
1818
<None Update="log4net.config">

0 commit comments

Comments
 (0)