internal string RemoveFileCommand(SynoReportViaSSH connection, ConsoleFileInfo file) { return(RemoveFileCommand(connection.SynoReportHome + file.Path)); }
internal void RemoveFile(SynoReportViaSSH connection, ConsoleFileInfo file, ConsoleCommandMode mode, SshClient session = null) { RunCommand(connection, RemoveFileCommand(connection, file), mode, session); }
internal void RemoveFile(SynoReportViaSSH connection, ConsoleFileInfo file, ConsoleCommandMode mode, SshClient session = null) { RunCommand(connection, string.Format("rm {0}", connection.SynoReportHome.Substring(0, connection.SynoReportHome.Length - "synoreport/".Length) + file.Path.Substring(1)), mode, session); }