3 #if SILICONSTUDIO_PLATFORM_WINDOWS_RUNTIME
5 using System.Diagnostics;
9 using System.Runtime.InteropServices;
10 using System.Runtime.InteropServices.ComTypes;
12 namespace SiliconStudio.Core.IO
17 public partial class FileSystemProvider
19 public override string GetAbsolutePath(
string path)
21 return ConvertUrlToFullPath(path);
27 if (localBasePath != null && url.Split(VirtualFileSystem.DirectorySeparatorChar, VirtualFileSystem.AltDirectorySeparatorChar).Contains(
".."))
28 throw new InvalidOperationException(
"Relative path is not allowed in FileSystemProvider.");
30 var rawAccess = (NativeFileAccess) 0;
32 rawAccess |= NativeFileAccess.Read;
34 rawAccess |= NativeFileAccess.Write;
36 return new NativeFileStream(ConvertUrlToFullPath(url), (NativeFileMode)mode, rawAccess);
40 public override string[] ListFiles(
string url,
string searchPattern,
VirtualSearchOption searchOption)
42 throw new NotImplementedException();
VirtualFileShare
File share capabilities, equivalent of System.IO.FileShare.
VirtualFileAccess
File access equivalent of System.IO.FileAccess.
VirtualFileMode
File mode equivalent of System.IO.FileMode.
StreamFlags
Describes the different type of streams.