();
+ foreach (FileSystemInfo remoteStorageItem in remoteStorageChildren)
+ {
+ IFileSystemItemMetadata itemInfo = Mapping.GetUserFileSysteItemMetadata(remoteStorageItem);
+ userFileSystemChildren.Add(itemInfo);
+ }
+
+ // To signal that the children enumeration is completed
+ // always call ReturnChildren(), even if the folder is empty.
+ resultContext.ReturnChildren(userFileSystemChildren.ToArray(), userFileSystemChildren.Count);
+ }
+
+
+
+ ///
+ public async Task WriteAsync(IFolderMetadata folderMetadata)
+ {
+ Logger.LogMessage($"{nameof(IFolder)}.{nameof(WriteAsync)}()", UserFileSystemPath);
+
+ DirectoryInfo remoteStorageItem = new DirectoryInfo(RemoteStoragePath);
+
+ // Update remote storage folder metadata.
+ remoteStorageItem.Attributes = folderMetadata.Attributes;
+ remoteStorageItem.CreationTimeUtc = folderMetadata.CreationTime.UtcDateTime;
+ remoteStorageItem.LastWriteTimeUtc = folderMetadata.LastWriteTime.UtcDateTime;
+ remoteStorageItem.LastAccessTimeUtc = folderMetadata.LastAccessTime.UtcDateTime;
+ remoteStorageItem.LastWriteTimeUtc = folderMetadata.LastWriteTime.UtcDateTime;
+ }
+ }
+
+}
diff --git a/macOS/FileProviderExtension/packages.config b/macOS/FileProviderExtension/packages.config
new file mode 100644
index 0000000..4e162e6
--- /dev/null
+++ b/macOS/FileProviderExtension/packages.config
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/VirtualFileSystemMac/README.md b/macOS/README.md
similarity index 97%
rename from VirtualFileSystemMac/README.md
rename to macOS/README.md
index 3b9a050..a1e35a4 100644
--- a/VirtualFileSystemMac/README.md
+++ b/macOS/README.md
@@ -65,5 +65,5 @@
Note, that every File Provider Extension runs in a sandbox, so access to the local filesystem restricted by OS except Downloads, Pictures, Music, Movies public directories.
Next Article:
-WebDAV Drive Sample in .NET, C#
+Virtual Drive Sample in .NET, C#
diff --git a/VirtualFileSystem/RemoteStorage/General.docx b/macOS/RemoteStorage/General.docx
similarity index 100%
rename from VirtualFileSystem/RemoteStorage/General.docx
rename to macOS/RemoteStorage/General.docx
diff --git a/VirtualFileSystem/RemoteStorage/Introduction.pptx b/macOS/RemoteStorage/Introduction.pptx
similarity index 100%
rename from VirtualFileSystem/RemoteStorage/Introduction.pptx
rename to macOS/RemoteStorage/Introduction.pptx
diff --git a/VirtualFileSystemMac/RemoteStorage/Library/Content.txt b/macOS/RemoteStorage/Library/Content.txt
similarity index 100%
rename from VirtualFileSystemMac/RemoteStorage/Library/Content.txt
rename to macOS/RemoteStorage/Library/Content.txt
diff --git a/VirtualFileSystemMac/RemoteStorage/Library/Overview.doc b/macOS/RemoteStorage/Library/Overview.doc
similarity index 100%
rename from VirtualFileSystemMac/RemoteStorage/Library/Overview.doc
rename to macOS/RemoteStorage/Library/Overview.doc
diff --git a/VirtualFileSystemMac/RemoteStorage/Library/Product.vsd b/macOS/RemoteStorage/Library/Product.vsd
similarity index 100%
rename from VirtualFileSystemMac/RemoteStorage/Library/Product.vsd
rename to macOS/RemoteStorage/Library/Product.vsd
diff --git a/VirtualFileSystemMac/RemoteStorage/Library/Project.doc b/macOS/RemoteStorage/Library/Project.doc
similarity index 100%
rename from VirtualFileSystemMac/RemoteStorage/Library/Project.doc
rename to macOS/RemoteStorage/Library/Project.doc
diff --git a/VirtualFileSystemMac/RemoteStorage/Library/Vision.doc b/macOS/RemoteStorage/Library/Vision.doc
similarity index 100%
rename from VirtualFileSystemMac/RemoteStorage/Library/Vision.doc
rename to macOS/RemoteStorage/Library/Vision.doc
diff --git a/VirtualFileSystemMac/RemoteStorage/Library/Vision.mpp b/macOS/RemoteStorage/Library/Vision.mpp
similarity index 100%
rename from VirtualFileSystemMac/RemoteStorage/Library/Vision.mpp
rename to macOS/RemoteStorage/Library/Vision.mpp
diff --git a/VirtualFileSystemMac/RemoteStorage/Notes.txt b/macOS/RemoteStorage/My Directory/Notes.txt
similarity index 100%
rename from VirtualFileSystemMac/RemoteStorage/Notes.txt
rename to macOS/RemoteStorage/My Directory/Notes.txt
diff --git a/macOS/RemoteStorage/Notes.txt b/macOS/RemoteStorage/Notes.txt
new file mode 100644
index 0000000..45a4503
--- /dev/null
+++ b/macOS/RemoteStorage/Notes.txt
@@ -0,0 +1 @@
+My notes file text
\ No newline at end of file
diff --git a/macOS/RemoteStorage/Pictures/Arctic Ice.jpeg b/macOS/RemoteStorage/Pictures/Arctic Ice.jpeg
new file mode 100644
index 0000000..aa7066e
Binary files /dev/null and b/macOS/RemoteStorage/Pictures/Arctic Ice.jpeg differ
diff --git a/macOS/RemoteStorage/Pictures/Arctic Sun.jpeg b/macOS/RemoteStorage/Pictures/Arctic Sun.jpeg
new file mode 100644
index 0000000..19951f9
Binary files /dev/null and b/macOS/RemoteStorage/Pictures/Arctic Sun.jpeg differ
diff --git a/macOS/RemoteStorage/Pictures/Autumn.jpeg b/macOS/RemoteStorage/Pictures/Autumn.jpeg
new file mode 100644
index 0000000..64a19de
Binary files /dev/null and b/macOS/RemoteStorage/Pictures/Autumn.jpeg differ
diff --git a/macOS/RemoteStorage/Pictures/Beach.jpeg b/macOS/RemoteStorage/Pictures/Beach.jpeg
new file mode 100644
index 0000000..6a52177
Binary files /dev/null and b/macOS/RemoteStorage/Pictures/Beach.jpeg differ
diff --git a/macOS/RemoteStorage/Pictures/Boats.jpeg b/macOS/RemoteStorage/Pictures/Boats.jpeg
new file mode 100644
index 0000000..da0d252
Binary files /dev/null and b/macOS/RemoteStorage/Pictures/Boats.jpeg differ
diff --git a/macOS/RemoteStorage/Pictures/Cruise Ship.jpeg b/macOS/RemoteStorage/Pictures/Cruise Ship.jpeg
new file mode 100644
index 0000000..75123bc
Binary files /dev/null and b/macOS/RemoteStorage/Pictures/Cruise Ship.jpeg differ
diff --git a/macOS/RemoteStorage/Pictures/Glacier.jpeg b/macOS/RemoteStorage/Pictures/Glacier.jpeg
new file mode 100644
index 0000000..2302981
Binary files /dev/null and b/macOS/RemoteStorage/Pictures/Glacier.jpeg differ
diff --git a/macOS/RemoteStorage/Pictures/Hotel.jpeg b/macOS/RemoteStorage/Pictures/Hotel.jpeg
new file mode 100644
index 0000000..15f060f
Binary files /dev/null and b/macOS/RemoteStorage/Pictures/Hotel.jpeg differ
diff --git a/macOS/RemoteStorage/Pictures/Landing Pier.jpeg b/macOS/RemoteStorage/Pictures/Landing Pier.jpeg
new file mode 100644
index 0000000..48218d5
Binary files /dev/null and b/macOS/RemoteStorage/Pictures/Landing Pier.jpeg differ
diff --git a/macOS/RemoteStorage/Pictures/Orange in the Mountains.jpeg b/macOS/RemoteStorage/Pictures/Orange in the Mountains.jpeg
new file mode 100644
index 0000000..295fb58
Binary files /dev/null and b/macOS/RemoteStorage/Pictures/Orange in the Mountains.jpeg differ
diff --git a/macOS/RemoteStorage/Pictures/River.jpeg b/macOS/RemoteStorage/Pictures/River.jpeg
new file mode 100644
index 0000000..b9846e0
Binary files /dev/null and b/macOS/RemoteStorage/Pictures/River.jpeg differ
diff --git a/macOS/RemoteStorage/Pictures/Sunset.jpeg b/macOS/RemoteStorage/Pictures/Sunset.jpeg
new file mode 100644
index 0000000..8d4f89b
Binary files /dev/null and b/macOS/RemoteStorage/Pictures/Sunset.jpeg differ
diff --git a/macOS/RemoteStorage/Pictures/Windsurfing.jpeg b/macOS/RemoteStorage/Pictures/Windsurfing.jpeg
new file mode 100644
index 0000000..3bb0be1
Binary files /dev/null and b/macOS/RemoteStorage/Pictures/Windsurfing.jpeg differ
diff --git a/macOS/RemoteStorage/Pictures/Yachts.jpeg b/macOS/RemoteStorage/Pictures/Yachts.jpeg
new file mode 100644
index 0000000..9c68db3
Binary files /dev/null and b/macOS/RemoteStorage/Pictures/Yachts.jpeg differ
diff --git a/macOS/RemoteStorage/Pictures/Yellow Tree.jpeg b/macOS/RemoteStorage/Pictures/Yellow Tree.jpeg
new file mode 100644
index 0000000..4ce2882
Binary files /dev/null and b/macOS/RemoteStorage/Pictures/Yellow Tree.jpeg differ
diff --git a/VirtualFileSystemMac/RemoteStorage/Products/General.doc b/macOS/RemoteStorage/Products/General.doc
similarity index 100%
rename from VirtualFileSystemMac/RemoteStorage/Products/General.doc
rename to macOS/RemoteStorage/Products/General.doc
diff --git a/macOS/RemoteStorage/Products/General.vsd b/macOS/RemoteStorage/Products/General.vsd
new file mode 100644
index 0000000..e69de29
diff --git a/VirtualFileSystemMac/RemoteStorage/Products/Product.mpp b/macOS/RemoteStorage/Products/Product.mpp
similarity index 100%
rename from VirtualFileSystemMac/RemoteStorage/Products/Product.mpp
rename to macOS/RemoteStorage/Products/Product.mpp
diff --git a/VirtualFileSystemMac/RemoteStorage/Project.mpp b/macOS/RemoteStorage/Project.mpp
similarity index 100%
rename from VirtualFileSystemMac/RemoteStorage/Project.mpp
rename to macOS/RemoteStorage/Project.mpp
diff --git a/macOS/RemoteStorage/Project.pdf b/macOS/RemoteStorage/Project.pdf
new file mode 100644
index 0000000..c82e775
Binary files /dev/null and b/macOS/RemoteStorage/Project.pdf differ
diff --git a/macOS/RemoteStorage/Readme.txt b/macOS/RemoteStorage/Readme.txt
new file mode 100644
index 0000000..a9492fa
--- /dev/null
+++ b/macOS/RemoteStorage/Readme.txt
@@ -0,0 +1,2 @@
+This is a test file structure that simulates your virtual file system.
+In your real-life application you will load all folder structure and documents from your remote server or storage.
\ No newline at end of file
diff --git a/VirtualFileSystemMac/RemoteStorage/Sales/Australia/Plan.doc b/macOS/RemoteStorage/Sales/Australia/Plan.doc
similarity index 100%
rename from VirtualFileSystemMac/RemoteStorage/Sales/Australia/Plan.doc
rename to macOS/RemoteStorage/Sales/Australia/Plan.doc
diff --git a/VirtualFileSystemMac/RemoteStorage/Sales/Australia/Prices.xls b/macOS/RemoteStorage/Sales/Australia/Prices.xls
similarity index 100%
rename from VirtualFileSystemMac/RemoteStorage/Sales/Australia/Prices.xls
rename to macOS/RemoteStorage/Sales/Australia/Prices.xls
diff --git a/VirtualFileSystemMac/RemoteStorage/Sales/Canada/Introduction.ppt b/macOS/RemoteStorage/Sales/Canada/Introduction.ppt
similarity index 100%
rename from VirtualFileSystemMac/RemoteStorage/Sales/Canada/Introduction.ppt
rename to macOS/RemoteStorage/Sales/Canada/Introduction.ppt
diff --git a/VirtualFileSystemMac/RemoteStorage/Sales/Canada/Prices.xls b/macOS/RemoteStorage/Sales/Canada/Prices.xls
similarity index 100%
rename from VirtualFileSystemMac/RemoteStorage/Sales/Canada/Prices.xls
rename to macOS/RemoteStorage/Sales/Canada/Prices.xls
diff --git a/VirtualFileSystemMac/RemoteStorage/Sales/Canada/Product.mpp b/macOS/RemoteStorage/Sales/Canada/Product.mpp
similarity index 100%
rename from VirtualFileSystemMac/RemoteStorage/Sales/Canada/Product.mpp
rename to macOS/RemoteStorage/Sales/Canada/Product.mpp
diff --git a/VirtualFileSystemMac/RemoteStorage/Sales/Canada/Stat.xls b/macOS/RemoteStorage/Sales/Canada/Stat.xls
similarity index 100%
rename from VirtualFileSystemMac/RemoteStorage/Sales/Canada/Stat.xls
rename to macOS/RemoteStorage/Sales/Canada/Stat.xls
diff --git a/VirtualFileSystemMac/RemoteStorage/Sales/Europe/Stat.xls b/macOS/RemoteStorage/Sales/Europe/Stat.xls
similarity index 100%
rename from VirtualFileSystemMac/RemoteStorage/Sales/Europe/Stat.xls
rename to macOS/RemoteStorage/Sales/Europe/Stat.xls
diff --git a/VirtualFileSystemMac/RemoteStorage/Sales/USA/Vision.mpp b/macOS/RemoteStorage/Sales/USA/Vision.mpp
similarity index 100%
rename from VirtualFileSystemMac/RemoteStorage/Sales/USA/Vision.mpp
rename to macOS/RemoteStorage/Sales/USA/Vision.mpp
diff --git a/macOS/RemoteStorage/Scheme.vsdx b/macOS/RemoteStorage/Scheme.vsdx
new file mode 100644
index 0000000..e69de29
diff --git a/VirtualFileSystemMac/RemoteStorage/Stat.xlsx b/macOS/RemoteStorage/Stat.xlsx
similarity index 100%
rename from VirtualFileSystemMac/RemoteStorage/Stat.xlsx
rename to macOS/RemoteStorage/Stat.xlsx
diff --git a/VirtualFileSystemMac/VirtualFilesystemCommon/AppGroupSettings.cs b/macOS/VirtualFilesystemCommon/AppGroupSettings.cs
similarity index 100%
rename from VirtualFileSystemMac/VirtualFilesystemCommon/AppGroupSettings.cs
rename to macOS/VirtualFilesystemCommon/AppGroupSettings.cs
diff --git a/VirtualFileSystemMac/VirtualFilesystemCommon/Properties/AssemblyInfo.cs b/macOS/VirtualFilesystemCommon/Properties/AssemblyInfo.cs
similarity index 100%
rename from VirtualFileSystemMac/VirtualFilesystemCommon/Properties/AssemblyInfo.cs
rename to macOS/VirtualFilesystemCommon/Properties/AssemblyInfo.cs
diff --git a/VirtualFileSystemMac/VirtualFilesystemCommon/VirtualFilesystemCommon.csproj b/macOS/VirtualFilesystemCommon/VirtualFilesystemCommon.csproj
similarity index 94%
rename from VirtualFileSystemMac/VirtualFilesystemCommon/VirtualFilesystemCommon.csproj
rename to macOS/VirtualFilesystemCommon/VirtualFilesystemCommon.csproj
index 95ddfb6..cc51ce1 100644
--- a/VirtualFileSystemMac/VirtualFilesystemCommon/VirtualFilesystemCommon.csproj
+++ b/macOS/VirtualFilesystemCommon/VirtualFilesystemCommon.csproj
@@ -11,7 +11,7 @@
v2.0
Xamarin.Mac
Resources
- 2.5.5091.0
+ 3.0.6973.0