public static void SetupFS(Zio.IFileSystem fs) { _FileSystem = fs; if (CloudManager != null) { CloudManager.FileSystem = _FileSystem; CloudManager.BroadcastingIveChanged(); } }
public static void SetupFS(string sharingRoot) { var rootfs = new Zio.FileSystems.PhysicalFileSystem(); Zio.IFileSystem fsfav; if (!string.IsNullOrWhiteSpace(sharingRoot)) { fsfav = new Zio.FileSystems.SubFileSystem(rootfs, sharingRoot); } else { fsfav = new Zio.FileSystems.MemoryFileSystem(); } Globals.FileSystem = fsfav; try { Globals.CloudManager.FileSystem = fsfav; } catch { } try { Globals.CloudManager?.BroadcastingIveChanged(); } catch { } }