Exemple #1
0
 internal string RemoveFileCommand(SynoReportViaSSH connection, ConsoleFileInfo file)
 {
     return(RemoveFileCommand(connection.SynoReportHome + file.Path));
 }
Exemple #2
0
 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);
 }