Ejemplo n.º 1
0
 public static bool Connect(bool OfflineMode = false, string promptedPassword = "")
 {
     if (useDDM)
     {
         return(IBMDDMi.Connect(OfflineMode, promptedPassword));
     }
     else
     {
         return(IBMFTPi.Connect(OfflineMode, promptedPassword));
     }
 }
Ejemplo n.º 2
0
 public static void Disconnect()
 {
     if (useDDM)
     {
         IBMDDMi.Disconnect();
     }
     else
     {
         IBMFTPi.Disconnect();
     }
 }
Ejemplo n.º 3
0
 public static void CreateDirecory(string RemoteDir)
 {
     if (useDDM)
     {
         IBMDDMi.CreateDirecory(RemoteDir);
     }
     else
     {
         IBMFTPi.CreateDirecory(RemoteDir);
     }
 }
Ejemplo n.º 4
0
 public static void UploadFiles(string RemoteDir, string[] Files)
 {
     if (useDDM)
     {
         IBMDDMi.UploadFiles(RemoteDir, Files);
     }
     else
     {
         IBMFTPi.UploadFiles(RemoteDir, Files);
     }
 }
Ejemplo n.º 5
0
 //Returns true if successful
 public static bool RunCommands(string[] Commands)
 {
     if (useDDM)
     {
         return(IBMDDMi.RunCommands(Commands));
     }
     else
     {
         return(IBMFTPi.RunCommands(Commands));
     }
 }
Ejemplo n.º 6
0
 public static bool IsConnected()
 {
     if (useDDM)
     {
         return(IBMDDMi.IsConnected());
     }
     else
     {
         return(IBMFTPi.IsConnected());
     }
 }
Ejemplo n.º 7
0
 public static void DeleteDir(string remoteDir)
 {
     if (useDDM)
     {
         IBMDDMi.DeleteDir(remoteDir);
     }
     else
     {
         IBMFTPi.DeleteDir(remoteDir);
     }
 }
Ejemplo n.º 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));
     }
 }
Ejemplo n.º 9
0
 public static string RenameDir(string remoteDir, string newName)
 {
     if (useDDM)
     {
         return(IBMDDMi.RenameDir(remoteDir, newName));
     }
     else
     {
         return(IBMFTPi.RenameDir(remoteDir, newName));
     }
 }
Ejemplo n.º 10
0
 public static string RenameFile(string remoteFile, string newName)
 {
     if (useDDM)
     {
         return(IBMDDMi.RenameFile(remoteFile, newName));
     }
     else
     {
         return(IBMFTPi.RenameFile(remoteFile, newName));
     }
 }
Ejemplo n.º 11
0
 public static FtpListItem[] GetListing(string remoteDir)
 {
     if (useDDM)
     {
         return(IBMDDMi.GetListing(remoteDir));
     }
     else
     {
         return(IBMFTPi.GetListing(remoteDir));
     }
 }
Ejemplo n.º 12
0
 public static bool DirExists(string remoteDir)
 {
     if (useDDM)
     {
         return(IBMDDMi.DirExists(remoteDir));
     }
     else
     {
         return(IBMFTPi.DirExists(remoteDir));
     }
 }
Ejemplo n.º 13
0
 public static bool FileExists(string remoteFile)
 {
     if (useDDM)
     {
         return(IBMDDMi.FileExists(remoteFile));
     }
     else
     {
         return(IBMFTPi.FileExists(remoteFile));
     }
 }
Ejemplo n.º 14
0
 public static string GetSystem()
 {
     if (useDDM)
     {
         return(IBMDDMi.GetSystem());
     }
     else
     {
         return(IBMFTPi.GetSystem());
     }
 }
Ejemplo n.º 15
0
 public static void DeleteFile(string remoteFile)
 {
     if (useDDM)
     {
         IBMDDMi.DeleteFile(remoteFile);
     }
     else
     {
         IBMFTPi.DeleteFile(remoteFile);
     }
 }
Ejemplo n.º 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));
     }
 }
Ejemplo n.º 17
0
 public static void SetWorkingDir(string RemoteDir)
 {
     if (useDDM)
     {
         IBMDDMi.SetWorkingDir(RemoteDir);
     }
     else
     {
         IBMFTPi.SetWorkingDir(RemoteDir);
     }
 }
Ejemplo n.º 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));
     }
 }
Ejemplo n.º 19
0
 public static string RemoteCommandResponse(string Command)
 {
     if (useDDM)
     {
         return(IBMDDMi.RemoteCommandResponse(Command));
     }
     else
     {
         return(IBMFTPi.RemoteCommandResponse(Command));
     }
 }