Skip to content

Commit b52a20d

Browse files
committed
v7.1.23216.0-Beta
1 parent d01af8b commit b52a20d

File tree

63 files changed

+1005
-977
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+1005
-977
lines changed

Common/Common.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<Platforms>AnyCPU;x64</Platforms>
1111
</PropertyGroup>
1212
<ItemGroup>
13-
<PackageReference Include="ITHit.FileSystem.Windows" Version="7.0.22362.0-Beta" />
14-
<PackageReference Include="ITHit.FileSystem" Version="7.0.22362.0-Beta" />
13+
<PackageReference Include="ITHit.FileSystem.Windows" Version="7.1.23216.0-Beta" />
14+
<PackageReference Include="ITHit.FileSystem" Version="7.1.23216.0-Beta" />
1515
</ItemGroup>
1616
</Project>

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,30 @@ This sample implements a virtual file system for macOS that displays documents f
5858
</p>
5959
</a>
6060
</li>
61+
<li>
62+
<a class="link-header" href="https://www.userfilesystem.com/examples/mac_troubleshooting/">
63+
<h2>File Provider Extension Troubleshooting on macOS</h2>
64+
</a>
65+
66+
<a href="https://www.userfilesystem.com/examples/mac_troubleshooting/">
67+
<p>
68+
If you experience issues on application start it may be caused by an incorrect app configuration. You can find what may be wrong using a macOS Console:
69+
70+
If your application started successfully but you experience issues with the file system you may n <span>...</span>
71+
</p>
72+
</a>
73+
</li>
74+
<li>
75+
<a class="link-header" href="https://www.userfilesystem.com/examples/apple_deployment/">
76+
<h2>macOS File Provider Extension Projects Deployment </h2>
77+
</a>
78+
79+
<a href="https://www.userfilesystem.com/examples/apple_deployment/">
80+
<p>
81+
To deploy macOS project in a production environment you will need to create&nbsp;Group ID, App Identifies and Provisioning Profiles.
82+
Note that these steps are NOT required for development. Sample project provided with the library run out of the box in the <span>...</span>
83+
</p>
84+
</a>
85+
</li>
6186
</ul>
6287

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="7.0.22362.0-Beta" />
24-
<PackageReference Include="ITHit.FileSystem.Windows" Version="7.0.22362.0-Beta" />
23+
<PackageReference Include="ITHit.FileSystem.Windows.Package" Version="7.1.23216.0-Beta" />
24+
<PackageReference Include="ITHit.FileSystem.Windows" Version="7.1.23216.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
@@ -13,7 +13,7 @@
1313
<Compile Remove="IVirtualFolder.cs" />
1414
</ItemGroup>
1515
<ItemGroup>
16-
<PackageReference Include="ITHit.FileSystem.Windows" Version="7.0.22362.0-Beta" />
16+
<PackageReference Include="ITHit.FileSystem.Windows" Version="7.1.23216.0-Beta" />
1717
<ProjectReference Include="..\..\..\Common\Common.csproj" />
1818
<ProjectReference Include="..\Core\Common.Windows.Core.csproj" />
1919
</ItemGroup>

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="7.0.22362.0-Beta" />
22+
<PackageReference Include="ITHit.FileSystem.Windows.ShellExtension" Version="7.1.23216.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="7.0.22362.0-Beta" />
43+
<PackageReference Include="ITHit.FileSystem.Windows.Package" Version="7.1.23216.0-Beta" />
4444
<ProjectReference Include="..\..\..\Common\Common.csproj" />
4545
<ProjectReference Include="..\..\Common\VirtualDrive\Common.Windows.VirtualDrive.csproj" />
4646
</ItemGroup>

Windows/VirtualDrive/VirtualDrive/VirtualEngine.cs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
using ITHit.FileSystem;
66
using ITHit.FileSystem.Samples.Common.Windows;
7-
7+
using ITHit.FileSystem.Windows;
88

99
namespace VirtualDrive
1010
{
@@ -30,19 +30,20 @@ public class VirtualEngine : VirtualEngineBase
3030
/// <param name="iconsFolderPath">Path to the icons folder.</param>
3131
/// <param name="logFormatter">Logger.</param>
3232
public VirtualEngine(
33-
string license,
34-
string userFileSystemRootPath,
35-
string remoteStorageRootPath,
36-
string iconsFolderPath,
33+
string license,
34+
string userFileSystemRootPath,
35+
string remoteStorageRootPath,
36+
string iconsFolderPath,
3737
LogFormatter logFormatter)
3838
: base(license, userFileSystemRootPath, remoteStorageRootPath, iconsFolderPath, logFormatter)
3939
{
4040
RemoteStorageMonitor = new RemoteStorageMonitor(remoteStorageRootPath, this, this.Logger);
4141
}
4242

4343
/// <inheritdoc/>
44-
public override async Task<IFileSystemItem> GetFileSystemItemAsync(string userFileSystemPath, FileSystemItemType itemType, byte[] remoteStorageItemId, ILogger logger = null)
44+
public override async Task<IFileSystemItem> GetFileSystemItemAsync(byte[] remoteStorageItemId, FileSystemItemType itemType, IContext context, ILogger logger = null)
4545
{
46+
string userFileSystemPath = (context as IContextWindows).Path;
4647
if (itemType == FileSystemItemType.File)
4748
{
4849
return new VirtualFile(userFileSystemPath, remoteStorageItemId, this, logger);
@@ -55,7 +56,7 @@ public override async Task<IFileSystemItem> GetFileSystemItemAsync(string userFi
5556

5657

5758
/// <inheritdoc/>
58-
public override async Task<IMenuCommand> GetMenuCommandAsync(Guid menuGuid)
59+
public override async Task<IMenuCommand> GetMenuCommandAsync(Guid menuGuid, IOperationContext operationContext = null)
5960
{
6061
// For this method to be called you need to register a menu command handler.
6162
// See method description for more details.

Windows/VirtualDrive/VirtualDrive/VirtualFileSystemItem.cs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
namespace VirtualDrive
1414
{
1515
///<inheritdoc>
16-
public abstract class VirtualFileSystemItem : IFileSystemItem, ILock
16+
public abstract class VirtualFileSystemItem : IFileSystemItemWindows, ILock
1717
{
1818
/// <summary>
1919
/// File or folder path in the user file system.
@@ -152,7 +152,7 @@ public async Task DeleteCompletionAsync(IOperationContext operationContext, IInS
152152
}
153153

154154
/// <inheritdoc/>
155-
public async Task<byte[]> GetThumbnailAsync(uint size)
155+
public async Task<byte[]> GetThumbnailAsync(uint size, IOperationContext operationContext = null)
156156
{
157157
// For this method to be called you need to register a thumbnail handler.
158158
// See method description for more details.
@@ -169,7 +169,7 @@ public async Task<byte[]> GetThumbnailAsync(uint size)
169169

170170

171171
/// <inheritdoc/>
172-
public async Task<IEnumerable<FileSystemItemPropertyData>> GetPropertiesAsync()
172+
public async Task<IEnumerable<FileSystemItemPropertyData>> GetPropertiesAsync(IOperationContext operationContext = null)
173173
{
174174
// For this method to be called you need to register a properties handler.
175175
// See method description for more details.
@@ -227,13 +227,6 @@ public async Task<IEnumerable<FileSystemItemPropertyData>> GetPropertiesAsync()
227227
}
228228

229229

230-
///<inheritdoc>
231-
public Task<IFileSystemItemMetadata> GetMetadataAsync()
232-
{
233-
// Return IFileMetadata for a file, IFolderMetadata for a folder.
234-
throw new NotImplementedException();
235-
}
236-
237230
///<inheritdoc>
238231
public async Task LockAsync(LockMode lockMode, IOperationContext operationContext = null, CancellationToken cancellationToken = default)
239232
{

Windows/VirtualFileSystem/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public static async Task Main(string[] args)
8787
// Set the remote storage item ID for the root item. It will be passed to the IEngine.GetFileSystemItemAsync()
8888
// method as a remoteStorageItemId parameter when a root folder is requested.
8989
byte[] itemId = WindowsFileSystemItem.GetItemIdByPath(Settings.RemoteStorageRootPath);
90-
Engine.Placeholders.GetRootItem().SetRemoteStorageItemId(itemId);
90+
Engine.SetRemoteStorageRootItemId(itemId);
9191

9292
// Print console commands.
9393
consoleProcessor.PrintHelp();

0 commit comments

Comments
 (0)