Skip to content

Commit

Permalink
v5.6.16274.0-Beta2
Browse files Browse the repository at this point in the history
  • Loading branch information
ITHitBuild committed Jul 6, 2022
1 parent 39675e1 commit 73080a6
Show file tree
Hide file tree
Showing 27 changed files with 49 additions and 47 deletions.
2 changes: 1 addition & 1 deletion Common/Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
<Platforms>AnyCPU;x64</Platforms>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="ITHit.FileSystem" Version="5.6.16262.0-Beta2" />
<PackageReference Include="ITHit.FileSystem" Version="5.6.16274.0-Beta2" />
</ItemGroup>
</Project>
4 changes: 2 additions & 2 deletions Windows/Common/Core/Common.Windows.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<PackageReference Include="Microsoft.Windows.SDK.Contracts" Version="10.0.19041.1" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ITHit.FileSystem.Windows.Package" Version="5.6.16262.0-Beta2" />
<PackageReference Include="ITHit.FileSystem.Windows" Version="5.6.16262.0-Beta2" />
<PackageReference Include="ITHit.FileSystem.Windows.Package" Version="5.6.16274.0-Beta2" />
<PackageReference Include="ITHit.FileSystem.Windows" Version="5.6.16274.0-Beta2" />
<ProjectReference Include="..\..\..\Common\Common.csproj" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<Platforms>AnyCPU;x64</Platforms>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="ITHit.FileSystem.Windows" Version="5.6.16262.0-Beta2" />
<PackageReference Include="ITHit.FileSystem.Windows" Version="5.6.16274.0-Beta2" />
<ProjectReference Include="..\..\..\Common\Common.csproj" />
<ProjectReference Include="..\Core\Common.Windows.Core.csproj" />
</ItemGroup>
Expand Down
10 changes: 5 additions & 5 deletions Windows/Common/VirtualDrive/VirtualEngineBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,28 +63,28 @@ public VirtualEngineBase(
}

/// <inheritdoc/>
public override async Task<bool> FilterAsync(SyncDirection direction, OperationType operationType, string path, string newPath = null, FileAttributes? attributes = null, IOperationContext operationContext = null)
public override async Task<bool> FilterAsync(SyncDirection direction, OperationType operationType, string path, FileSystemItemType itemType, string newPath = null, FileAttributes? attributes = null, IOperationContext operationContext = null)
{
// Use the code below to filter based on files and folders attributes.
//if (await new AttributesFilter(FileAttributes.Hidden | FileAttributes.Temporary).FilterAsync(direction, operationType, path, newPath, attributes))
//if (await new AttributesFilter(FileAttributes.Hidden | FileAttributes.Temporary).FilterAsync(direction, operationType, path, itemType, newPath, attributes))
//{
// LogDebug($"{nameof(AttributesFilter)} filtered {operationType}", path, newPath, operationContext);
// return true;
//}

if (await new ZipFilter().FilterAsync(direction, operationType, path, newPath, attributes))
if (await new ZipFilter().FilterAsync(direction, operationType, path, itemType, newPath, attributes))
{
LogDebug($"{nameof(ZipFilter)} filtered {operationType}", path, newPath, operationContext);
return true;
}

if (await new MsOfficeFilter().FilterAsync(direction, operationType, path, newPath, attributes))
if (await new MsOfficeFilter().FilterAsync(direction, operationType, path, itemType, newPath, attributes))
{
LogDebug($"{nameof(MsOfficeFilter)} filtered {operationType}", path, newPath, operationContext);
return true;
}

if (await new AutoCadFilter().FilterAsync(direction, operationType, path, newPath, attributes))
if (await new AutoCadFilter().FilterAsync(direction, operationType, path, itemType, newPath, attributes))
{
LogDebug($"{nameof(AutoCadFilter)} filtered {operationType}", path, newPath, operationContext);
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace VirtualDrive.ShellExtension
[ComVisible(true)]
[ProgId("VirtualDrive.ContextMenuVerb")]
[Guid("9C923BF3-3A4B-487B-AB4E-B4CF87FD1C25")]
public class ContextMenuVerbRpc : ContextMenuVerbRpcBase
public class ContextMenuVerbRpc : CloudFilesContextMenuVerbRpcBase
{

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace VirtualDrive.ShellExtension
[ComVisible(true)]
[ProgId("VirtualDrive.CustomStateProvider")]
[Guid("000562AA-2879-4CF1-89E8-0AEC9596FE19")]
public class CustomStateProviderRpc : CustomStateProviderRpcBase
public class CustomStateProviderRpc : CustomStateHandlerRpcBase
{

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace VirtualDrive.ShellExtension
[ComVisible(true)]
[ProgId("VirtualDrive.ThumbnailProvider")]
[Guid("05CF065E-E135-4B2B-9D4D-CFB3FBAC73A4")]
public class ThumbnailProviderRpc : ThumbnailProviderRpcBase
public class ThumbnailProviderRpc : ThumbnailProviderHandlerRpcBase
{

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace VirtualDrive.ShellExtension
[ComVisible(true)]
[ProgId("VirtualDrive.UriSource")]
[Guid("6D45BC7A-D0B7-4913-8984-FD7261550C08")]
public class UriSourceRpc : UriSourceRpcBase
public class UriSourceRpc : ContentUriSourceRpcBase
{

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<PackageReference Include="System.Drawing.Common" Version="6.0.0" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ITHit.FileSystem.Windows.ShellExtension" Version="5.6.16262.0-Beta2" />
<PackageReference Include="ITHit.FileSystem.Windows.ShellExtension" Version="5.6.16274.0-Beta2" />
</ItemGroup>
<ItemGroup>
<None Update="log4net.config">
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace VirtualDrive.ShellExtension
[ComVisible(true)]
[ProgId("VirtualDrive.ContextMenuVerb")]
[Guid("9C923BF3-3A4B-487B-AB4E-B4CF87FD1C25")]
public class ContextMenuVerbIntegrated : ContextMenuVerbIntegratedBase
public class ContextMenuVerbIntegrated : CloudFilesContextMenuVerbIntegratedBase
{
public ContextMenuVerbIntegrated() : base(Program.Engine)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace VirtualDrive.ShellExtension
[ComVisible(true)]
[ProgId("VirtualDrive.CustomStateProvider")]
[Guid("000562AA-2879-4CF1-89E8-0AEC9596FE19")]
public class CustomStateProviderIntegrated : CustomStateProviderIntegratedBase
public class CustomStateProviderIntegrated : CustomStateHandlerIntegratedBase
{
public CustomStateProviderIntegrated() : base(Program.Engine, Program.Engine.IconsFolderPath)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace VirtualDrive.ShellExtension
[ComVisible(true)]
[ProgId("VirtualDrive.ThumbnailProvider")]
[Guid("05CF065E-E135-4B2B-9D4D-CFB3FBAC73A4")]
public class ThumbnailProviderIntegrated : ThumbnailProviderIntegratedBase
public class ThumbnailProviderIntegrated : ThumbnailProviderHandlerIntegratedBase
{
public ThumbnailProviderIntegrated() : base(Program.Engine)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace VirtualDrive.ShellExtension
[ComVisible(true)]
[ProgId("VirtualDrive.UriSource")]
[Guid("6D45BC7A-D0B7-4913-8984-FD7261550C08")]
public class UriSourceIntegrated : UriSourceBase
public class UriSourceIntegrated : ContentUriSourceIntegratedBase
{
public UriSourceIntegrated() : base(Program.Engine)
{
Expand Down
4 changes: 2 additions & 2 deletions Windows/VirtualDrive/VirtualDrive/VirtualDrive.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ This is an advanced project with ETags support, Microsoft Office documents editi
<PackageReference Include="System.Drawing.Common" Version="6.0.0" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ITHit.FileSystem.Windows.Package" Version="5.6.16262.0-Beta2" />
<PackageReference Include="ITHit.FileSystem.Windows.ShellExtension" Version="5.6.16262.0-Beta2" />
<PackageReference Include="ITHit.FileSystem.Windows.Package" Version="5.6.16274.0-Beta2" />
<PackageReference Include="ITHit.FileSystem.Windows.ShellExtension" Version="5.6.16274.0-Beta2" />
<ProjectReference Include="..\..\..\Common\Common.csproj" />
<ProjectReference Include="..\..\Common\VirtualDrive\Common.Windows.VirtualDrive.csproj" />
<ProjectReference Include="..\VirtualDrive.ShellExtension\VirtualDrive.ShellExtension.csproj" />
Expand Down
5 changes: 4 additions & 1 deletion Windows/VirtualDrive/VirtualDrive/VirtualFileSystemItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,10 @@ public async Task<LockMode> GetLockModeAsync(IOperationContext operationContext
{
if (placeholder.Properties.TryGetValue("LockMode", out IDataItem property))
{
return await property.GetValueAsync<LockMode>();
if(property.TryGetValue<LockMode>(out LockMode lockMode))
{
return lockMode;
}
}
}

Expand Down
10 changes: 5 additions & 5 deletions Windows/VirtualFileSystem/VirtualEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,28 +48,28 @@ public VirtualEngine(string license, string userFileSystemRootPath, string remot
}

/// <inheritdoc/>
public override async Task<bool> FilterAsync(SyncDirection direction, OperationType operationType, string path, string newPath = null, FileAttributes? attributes = null, IOperationContext operationContext = null)
public override async Task<bool> FilterAsync(SyncDirection direction, OperationType operationType, string path, FileSystemItemType itemType, string newPath = null, FileAttributes? attributes = null, IOperationContext operationContext = null)
{
// Use the code below to filter based on files and folders attributes.
//if (await new AttributesFilter(FileAttributes.Hidden | FileAttributes.Temporary).FilterAsync(direction, operationType, path, newPath, attributes))
//if (await new AttributesFilter(FileAttributes.Hidden | FileAttributes.Temporary).FilterAsync(direction, operationType, path, itemType, newPath, attributes))
//{
// LogDebug($"{nameof(AttributesFilter)} filtered {operationType}", path, newPath, operationContext);
// return true;
//}

if (await new ZipFilter().FilterAsync(direction, operationType, path, newPath, attributes))
if (await new ZipFilter().FilterAsync(direction, operationType, path, itemType, newPath, attributes))
{
LogDebug($"{nameof(ZipFilter)} filtered {operationType}", path, newPath, operationContext);
return true;
}

if (await new MsOfficeFilter().FilterAsync(direction, operationType, path, newPath, attributes))
if (await new MsOfficeFilter().FilterAsync(direction, operationType, path, itemType, newPath, attributes))
{
LogDebug($"{nameof(MsOfficeFilter)} filtered {operationType}", path, newPath, operationContext);
return true;
}

if (await new AutoCadFilter().FilterAsync(direction, operationType, path, newPath, attributes))
if (await new AutoCadFilter().FilterAsync(direction, operationType, path, itemType, newPath, attributes))
{
LogDebug($"{nameof(AutoCadFilter)} filtered {operationType}", path, newPath, operationContext);
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace WebDAVDrive.ShellExtension
[ComVisible(true)]
[ProgId("WebDAVDrive.ContextMenuVerb")]
[Guid("A22EBD03-343E-433C-98DF-372C6B3A1538")]
public class ContextMenuVerbRpc : ContextMenuVerbRpcBase
public class ContextMenuVerbRpc : CloudFilesContextMenuVerbRpcBase
{

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace WebDAVDrive.ShellExtension
[ComVisible(true)]
[ProgId("WebDAVDrive.CustomStateProvider")]
[Guid("754F334F-095C-46CD-B033-B2C0523D2829")]
public class CustomStateProviderRpc : CustomStateProviderRpcBase
public class CustomStateProviderRpc : CustomStateHandlerRpcBase
{

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace WebDAVDrive.ShellExtension
[ComVisible(true)]
[ProgId("WebDAVDrive.ThumbnailProvider")]
[Guid("A5B0C82F-50AA-445C-A404-66DEB510E84B")]
public class ThumbnailProviderRpc : ThumbnailProviderRpcBase
public class ThumbnailProviderRpc : ThumbnailProviderHandlerRpcBase
{

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<Copyright>IT HIT LTD.</Copyright>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="ITHit.FileSystem.Windows.ShellExtension" Version="5.6.16262.0-Beta2" />
<PackageReference Include="ITHit.FileSystem.Windows.ShellExtension" Version="5.6.16274.0-Beta2" />
</ItemGroup>
<ItemGroup>
<None Update="log4net.config">
Expand Down
2 changes: 1 addition & 1 deletion Windows/WebDAVDrive/WebDAVDrive.UI/WebDAVDrive.UI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<PackageReference Include="ITHitWebDAVClient" Version="5.3.3490" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ITHit.FileSystem.Windows" Version="5.6.16262.0-Beta2" />
<PackageReference Include="ITHit.FileSystem.Windows" Version="5.6.16274.0-Beta2" />
<ProjectReference Include="..\..\..\Common\Common.csproj" />
</ItemGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace WebDAVDrive.ShellExtension
[ComVisible(true)]
[ProgId("WebDAVDrive.ContextMenuVerb")]
[Guid("A22EBD03-343E-433C-98DF-372C6B3A1538")]
public class ContextMenuVerbIntegrated : ContextMenuVerbIntegratedBase
public class ContextMenuVerbIntegrated : CloudFilesContextMenuVerbIntegratedBase
{
public ContextMenuVerbIntegrated() : base(Program.Engine)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace WebDAVDrive.ShellExtension
[ComVisible(true)]
[ProgId("WebDAVDrive.CustomStateProvider")]
[Guid("754F334F-095C-46CD-B033-B2C0523D2829")]
public class CustomStateProviderIntegrated : CustomStateProviderIntegratedBase
public class CustomStateProviderIntegrated : CustomStateHandlerIntegratedBase
{
public CustomStateProviderIntegrated() : base(Program.Engine, Program.Engine.IconsFolderPath)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,16 @@

namespace WebDAVDrive.ShellExtension
{

/// <summary>
/// Thumbnails provider Windows Shell Extension.
/// </summary>
[ComVisible(true)]
[ProgId("WebDAVDrive.ThumbnailProvider")]
[Guid("A5B0C82F-50AA-445C-A404-66DEB510E84B")]
public class ThumbnailProviderIntegrated : ThumbnailProviderIntegratedBase
public class ThumbnailProviderIntegrated : ThumbnailProviderHandlerIntegratedBase
{
public ThumbnailProviderIntegrated() : base(Program.Engine)
{
}
}

}
19 changes: 10 additions & 9 deletions Windows/WebDAVDrive/WebDAVDrive/VirtualFileSystemItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -286,17 +286,18 @@ public async Task LockAsync(LockMode lockMode, IOperationContext operationContex
///<inheritdoc>
public async Task<LockMode> GetLockModeAsync(IOperationContext operationContext = null, CancellationToken cancellationToken = default)
{
PlaceholderItem placeholder = Engine.Placeholders.GetItem(UserFileSystemPath);

IDataItem property;
if (placeholder.Properties.TryGetValue("LockMode", out property))
{
return await property.GetValueAsync<LockMode>();
}
else
if (Engine.Placeholders.TryGetItem(UserFileSystemPath, out PlaceholderItem placeholder))
{
return LockMode.None;
if (placeholder.Properties.TryGetValue("LockMode", out IDataItem property))
{
if (property.TryGetValue<LockMode>(out LockMode lockMode))
{
return lockMode;
}
}
}

return LockMode.None;
}


Expand Down
4 changes: 2 additions & 2 deletions Windows/WebDAVDrive/WebDAVDrive/WebDAVDrive.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="6.0.0" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ITHit.FileSystem.Windows.Package" Version="5.6.16262.0-Beta2" />
<PackageReference Include="ITHit.FileSystem.Windows.ShellExtension" Version="5.6.16262.0-Beta2" />
<PackageReference Include="ITHit.FileSystem.Windows.Package" Version="5.6.16274.0-Beta2" />
<PackageReference Include="ITHit.FileSystem.Windows.ShellExtension" Version="5.6.16274.0-Beta2" />
<ProjectReference Include="..\..\Common\VirtualDrive\Common.Windows.VirtualDrive.csproj" />
<ProjectReference Include="..\WebDAVDrive.ShellExtension\WebDAVDrive.ShellExtension.csproj" />
<ProjectReference Include="..\WebDAVDrive.UI\WebDAVDrive.UI.csproj" />
Expand Down

0 comments on commit 73080a6

Please sign in to comment.