public Stream GetFileContent(FileItemPathInfo pathInfo) { string path = pathInfo?.GetPath(); string text = Path.Combine(RootDirectoryPath, PreparePath(path)); if (Path.GetDirectoryName(text) == null) { _ = string.Empty; } if (FileSystemService.FileExists(text)) { return(FileSystemService.GetFileContent(text)); } FileManagementExceptionExecutor.ThrowFileNotFound(text); return(null); }
public void CreateDirectory(FileItemPathInfo pathInfo, string name) { CreateDirectory(pathInfo?.GetPath(), name); }
public IList <IClientFileSystemItem> GetDirectoryContents(FileItemPathInfo pathInfo) { return(GetDirectoryContents(pathInfo?.GetPath())); }
public void Remove(FileItemPathInfo pathInfo) { Remove(pathInfo?.GetPath()); }
public void Copy(FileItemPathInfo sourcePathInfo, FileItemPathInfo destinationPathInfo) { Copy(sourcePathInfo?.GetPath(), destinationPathInfo?.GetPath()); }
public void Move(FileItemPathInfo sourcePathInfo, FileItemPathInfo destinationPathInfo) { Move(sourcePathInfo?.GetPath(), destinationPathInfo?.GetPath()); }
public void Rename(FileItemPathInfo pathInfo, string newName) { Rename(pathInfo?.GetPath(), newName); }