public void Move(string source, string destination) { var physicalSource = WebFileSystem.GetPhysicalPath(source); var physicalDestination = WebFileSystem.GetPhysicalPath(destination); LocalFileSystem.Instance.File.Move(physicalSource, physicalDestination); }
public Task CopyAsync(string source, string destination, bool overwrite) { var physicalSource = WebFileSystem.GetPhysicalPath(source); var physicalDestination = WebFileSystem.GetPhysicalPath(destination); return(LocalFileSystem.Instance.File.CopyAsync(physicalSource, physicalDestination, overwrite)); }
public Task MoveAsync(string source, string destination) { var physicalSource = WebFileSystem.GetPhysicalPath(source); var physicalDestination = WebFileSystem.GetPhysicalPath(destination); return(LocalFileSystem.Instance.File.MoveAsync(physicalSource, physicalDestination)); }
public void Copy(string source, string destination, bool overwrite) { var physicalSource = WebFileSystem.GetPhysicalPath(source); var physicalDestination = WebFileSystem.GetPhysicalPath(destination); LocalFileSystem.Instance.File.Copy(physicalSource, physicalDestination, overwrite); }
private string EnsureDirecotry(string virtualPath, System.IO.FileMode mode) { var physicalPath = WebFileSystem.GetPhysicalPath(virtualPath); if (mode != System.IO.FileMode.Open) { var directory = System.IO.Path.GetDirectoryName(physicalPath); if (!System.IO.Directory.Exists(directory)) { System.IO.Directory.CreateDirectory(directory); } } return(physicalPath); }
public Task <bool> CreateAsync(string virtualPath, IDictionary <string, object> properties = null) { var physicalPath = WebFileSystem.GetPhysicalPath(virtualPath); return(LocalFileSystem.Instance.Directory.CreateAsync(physicalPath, properties)); }
public Task <bool> SetInfoAsync(string virtualPath, IDictionary <string, object> properties) { var physicalPath = WebFileSystem.GetPhysicalPath(virtualPath); return(LocalFileSystem.Instance.File.SetInfoAsync(physicalPath, properties)); }
public System.IO.Stream Open(string virtualPath, IDictionary <string, object> properties = null) { var physicalPath = WebFileSystem.GetPhysicalPath(virtualPath); return(LocalFileSystem.Instance.File.Open(physicalPath, properties)); }
public FileInfo GetInfo(string virtualPath) { var physicalPath = WebFileSystem.GetPhysicalPath(virtualPath); return(LocalFileSystem.Instance.File.GetInfo(physicalPath)); }
public Task <FileInfo> GetInfoAsync(string virtualPath) { var physicalPath = WebFileSystem.GetPhysicalPath(virtualPath); return(LocalFileSystem.Instance.File.GetInfoAsync(physicalPath)); }
public bool SetInfo(string virtualPath, IDictionary <string, object> properties) { var physicalPath = WebFileSystem.GetPhysicalPath(virtualPath); return(LocalFileSystem.Instance.Directory.SetInfo(physicalPath, properties)); }
public Task <bool> DeleteAsync(string virtualPath, bool recursive) { var physicalPath = WebFileSystem.GetPhysicalPath(virtualPath); return(LocalFileSystem.Instance.Directory.DeleteAsync(physicalPath, recursive)); }
public IEnumerable <DirectoryInfo> GetDirectories(string virtualPath, string pattern, bool recursive = false) { var physicalPath = WebFileSystem.GetPhysicalPath(virtualPath); return(LocalFileSystem.Instance.Directory.GetDirectories(physicalPath, pattern, recursive)); }
public bool Delete(string virtualPath, bool recursive = false) { var physicalPath = WebFileSystem.GetPhysicalPath(virtualPath); return(LocalFileSystem.Instance.Directory.Delete(physicalPath, recursive)); }
public Task <bool> ExistsAsync(string virtualPath) { var physicalPath = WebFileSystem.GetPhysicalPath(virtualPath); return(LocalFileSystem.Instance.File.ExistsAsync(physicalPath)); }
public bool Exists(string virtualPath) { var physicalPath = WebFileSystem.GetPhysicalPath(virtualPath); return(LocalFileSystem.Instance.File.Exists(physicalPath)); }
public Task <IEnumerable <FileInfo> > GetFilesAsync(string virtualPath, string pattern, bool recursive = false) { var physicalPath = WebFileSystem.GetPhysicalPath(virtualPath); return(LocalFileSystem.Instance.Directory.GetFilesAsync(physicalPath, pattern, recursive)); }