Пример #1
0
 public static bool Connect(bool OfflineMode = false, string promptedPassword = "")
 {
     if (useDDM)
     {
         return(IBMDDMi.Connect(OfflineMode, promptedPassword));
     }
     else
     {
         return(IBMFTPi.Connect(OfflineMode, promptedPassword));
     }
 }
Пример #2
0
 public static void Disconnect()
 {
     if (useDDM)
     {
         IBMDDMi.Disconnect();
     }
     else
     {
         IBMFTPi.Disconnect();
     }
 }
Пример #3
0
 public static void CreateDirecory(string RemoteDir)
 {
     if (useDDM)
     {
         IBMDDMi.CreateDirecory(RemoteDir);
     }
     else
     {
         IBMFTPi.CreateDirecory(RemoteDir);
     }
 }
Пример #4
0
 public static void UploadFiles(string RemoteDir, string[] Files)
 {
     if (useDDM)
     {
         IBMDDMi.UploadFiles(RemoteDir, Files);
     }
     else
     {
         IBMFTPi.UploadFiles(RemoteDir, Files);
     }
 }
Пример #5
0
 //Returns true if successful
 public static bool RunCommands(string[] Commands)
 {
     if (useDDM)
     {
         return(IBMDDMi.RunCommands(Commands));
     }
     else
     {
         return(IBMFTPi.RunCommands(Commands));
     }
 }
Пример #6
0
 public static bool IsConnected()
 {
     if (useDDM)
     {
         return(IBMDDMi.IsConnected());
     }
     else
     {
         return(IBMFTPi.IsConnected());
     }
 }
Пример #7
0
 public static void DeleteDir(string remoteDir)
 {
     if (useDDM)
     {
         IBMDDMi.DeleteDir(remoteDir);
     }
     else
     {
         IBMFTPi.DeleteDir(remoteDir);
     }
 }
Пример #8
0
 //Returns true if successful
 public static bool UploadFile(string Local, string Remote)
 {
     if (useDDM)
     {
         return(IBMDDMi.UploadFile(Local, Remote));
     }
     else
     {
         return(IBMFTPi.UploadFile(Local, Remote));
     }
 }
Пример #9
0
 public static string RenameDir(string remoteDir, string newName)
 {
     if (useDDM)
     {
         return(IBMDDMi.RenameDir(remoteDir, newName));
     }
     else
     {
         return(IBMFTPi.RenameDir(remoteDir, newName));
     }
 }
Пример #10
0
 public static string RenameFile(string remoteFile, string newName)
 {
     if (useDDM)
     {
         return(IBMDDMi.RenameFile(remoteFile, newName));
     }
     else
     {
         return(IBMFTPi.RenameFile(remoteFile, newName));
     }
 }
Пример #11
0
 public static FtpListItem[] GetListing(string remoteDir)
 {
     if (useDDM)
     {
         return(IBMDDMi.GetListing(remoteDir));
     }
     else
     {
         return(IBMFTPi.GetListing(remoteDir));
     }
 }
Пример #12
0
 public static bool DirExists(string remoteDir)
 {
     if (useDDM)
     {
         return(IBMDDMi.DirExists(remoteDir));
     }
     else
     {
         return(IBMFTPi.DirExists(remoteDir));
     }
 }
Пример #13
0
 public static bool FileExists(string remoteFile)
 {
     if (useDDM)
     {
         return(IBMDDMi.FileExists(remoteFile));
     }
     else
     {
         return(IBMFTPi.FileExists(remoteFile));
     }
 }
Пример #14
0
 public static string GetSystem()
 {
     if (useDDM)
     {
         return(IBMDDMi.GetSystem());
     }
     else
     {
         return(IBMFTPi.GetSystem());
     }
 }
Пример #15
0
 public static void DeleteFile(string remoteFile)
 {
     if (useDDM)
     {
         IBMDDMi.DeleteFile(remoteFile);
     }
     else
     {
         IBMFTPi.DeleteFile(remoteFile);
     }
 }
Пример #16
0
 //Returns false if successful
 public static bool DownloadFile(string Local, string Remote, DDMStreamCallbackAdaptor adaptor = null)
 {
     if (useDDM)
     {
         return(IBMDDMi.DownloadFile(Local, Remote, adaptor));
     }
     else
     {
         return(IBMFTPi.DownloadFile(Local, Remote));
     }
 }
Пример #17
0
 public static void SetWorkingDir(string RemoteDir)
 {
     if (useDDM)
     {
         IBMDDMi.SetWorkingDir(RemoteDir);
     }
     else
     {
         IBMFTPi.SetWorkingDir(RemoteDir);
     }
 }
Пример #18
0
 //Returns true if successful
 public static bool RemoteCommand(string Command, bool ShowError = true)
 {
     if (useDDM)
     {
         return(IBMDDMi.RemoteCommand(Command, ShowError));
     }
     else
     {
         return(IBMFTPi.RemoteCommand(Command, ShowError));
     }
 }
Пример #19
0
 public static string RemoteCommandResponse(string Command)
 {
     if (useDDM)
     {
         return(IBMDDMi.RemoteCommandResponse(Command));
     }
     else
     {
         return(IBMFTPi.RemoteCommandResponse(Command));
     }
 }