private static CommandResponse GetResponse(ICommandContext commandContext, IFileSystemContext fileSystemContext, List <Tuple <string, string> > errors) { var response = new OpenCommand().GetResponse(commandContext, fileSystemContext, true); if (errors.Any()) { var errorMessages = errors.Select(e => "[{0}: {1}]".FormatWith(e.Item1, e.Item2)); response.error = ResourceManager.GetString("Uploading_Files_Error").FormatWith(string.Join(",", errorMessages)); } return(response); }
private static CommandResponse GetResponse(ICommandContext commandContext, IFileSystemContext fileSystemContext, OpenCommandResponse response, bool forceTree = false) { response.cwd = fileSystemContext.Current.Info; response.cdc = fileSystemContext.Current.Children; bool treeRequested; if (forceTree || (bool.TryParse(commandContext.Parameters["tree"] ?? string.Empty, out treeRequested) && treeRequested)) { response.tree = fileSystemContext.Tree; } return(response); }
internal CommandResponse GetResponse(ICommandContext commandContext, IFileSystemContext fileSystemContext, bool forceTree = false) { return(GetResponse(commandContext, fileSystemContext, new OpenCommandResponse { tmb = false, disabled = commandContext.DisabledCommands.ToArray(), parameters = new InitializationParameters { dotFiles = false, archives = new string[] {}, extract = new string[] {}, } }, forceTree)); }
public SourceController(IFileSystemContext fileSystem) { FileSystem = fileSystem; }
public SymbolController(IFileSystemContext fileSystem) { FileSystem = fileSystem; }
public UploadController(IFileSystemContext fileSystem) { FileSystem = fileSystem; }