5 using System.Reflection;
6 using System.Runtime.CompilerServices;
8 namespace SiliconStudio.Core.IO
22 if (RootPath ==
string.Empty)
23 throw new ArgumentException(
"rootPath");
26 RootPath += VirtualFileSystem.DirectorySeparatorChar;
28 VirtualFileSystem.RegisterProvider(
this);
32 public string RootPath {
get;
private set; }
37 throw new NotImplementedException();
55 throw new NotImplementedException();
61 throw new NotImplementedException();
67 throw new NotImplementedException();
73 throw new NotImplementedException();
77 public virtual void FileMove(
string sourceUrl,
string destinationUrl)
79 throw new NotImplementedException();
85 throw new NotImplementedException();
91 throw new NotImplementedException();
97 throw new NotImplementedException();
103 throw new NotImplementedException();
A virtual file provider, that can returns a Stream for a given path.
Virtual abstraction over a file system. It handles access to files, http, packages, path rewrite, etc...
virtual long FileSize(string url)
Returns the size of the specified file in bytes The file or directory for which to obtain sizeA long ...
Abstract base class for IVirtualFileProvider.
virtual string GetAbsolutePath(string path)
Gets the absolute path for the specified local path from this provider. The path local to this instan...
virtual bool FileExists(string url)
Determines whether the specified path points to an existing file. The path.
VirtualFileShare
File share capabilities, equivalent of System.IO.FileShare.
static readonly char DirectorySeparatorChar
VirtualFileProviderBase(string rootPath)
virtual string ResolvePath(string path)
Resolves the path (can map virtual to absolute path).
virtual bool DirectoryExists(string url)
Determines whether the specified path points to an existing directory.
VirtualFileAccess
File access equivalent of System.IO.FileAccess.
VirtualFileMode
File mode equivalent of System.IO.FileMode.
virtual void FileMove(string sourceUrl, IVirtualFileProvider destinationProvider, string destinationUrl)
Move the specified file specified from its sourceUrl to the location pointed by destinationUrl in the...
virtual string[] ListFiles(string url, string searchPattern, VirtualSearchOption searchOption)
Returns the list of files from the specified path. The path.The search pattern.The search option...
virtual DateTime GetLastWriteTime(string url)
Returns the date and time the specified file or directory was last written to. The file or directory ...
virtual void CreateDirectory(string url)
Creates all directories so that url exists. The URL.
StreamFlags
Describes the different type of streams.
virtual void FileMove(string sourceUrl, string destinationUrl)
Move the specified file specified from its sourceUrl to the location pointed by destinationUrl. Do not overwrite, throw IOException if the file can't be moved. The source URL of the fileThe destination URL of the file
virtual void FileDelete(string url)
Deletes the specified file. The URL.