public static void SetupFS(string absolutePath) { if (string.IsNullOrWhiteSpace(absolutePath)) { RootPath = null; _CloudFileSystem = new MemoryFileSystem(); } else { RootPath = absolutePath; #pragma warning disable CA2000 // Dispose objects before losing scope var fs = new PhysicalFileSystem(); #pragma warning restore CA2000 // Dispose objects before losing scope Directory.CreateDirectory(absolutePath); _CloudFileSystem = new SubFileSystem(fs, fs.ConvertPathFromInternal(absolutePath), true); if (CloudService != null) { CloudService.FileSystem = CloudFileSystem; } } if (CloudService != null) { CloudService.BroadcastingIveChanged(); } }