Package sos.ftp.profiles

Examples of sos.ftp.profiles.FTPProfile.changeDirectory()


              FTPProfile profile = listener.getCurrProfile();

              sos.net.SOSFileTransfer p = profile.connect();

              if(p != null && p.isConnected()) {
                HashMap h = profile.changeDirectory(ftpProfilePicker.getSelectedProfilename(), txtDir.getText());
                if(profile.isLoggedIn()) {
                  butOpenOrSave.setEnabled(profile.isLoggedIn() && txtFilename.getText().length() > 0);
                  fillTable(h);
                  table.setSortDirection(SWT.UP);
                  sort(newColumnTableColumn_2);
View Full Code Here


        txtDir.addKeyListener(new KeyAdapter() {
          public void keyPressed(final KeyEvent e) {
            try {
              if (e.keyCode == SWT.CR) {
                FTPProfile profile = listener.getCurrProfile();
                HashMap h = profile.changeDirectory(txtDir.getText());
                fillTable(h);
              }
            } catch (Exception r) {
              MainWindow.message("error while change Directory: " + e.toString(), SWT.ICON_WARNING);
              try {               
View Full Code Here

            if(txtFilename.getText() != null) {
              Utils.startCursor(schedulerConfigurationShell);
              try {
                FTPProfile profile = listener.getCurrProfile();
                profile.removeFile(txtFilename.getText());
                HashMap h = profile.changeDirectory(txtDir.getText());
                fillTable(h);
              } catch (Exception r) {
                try {
                  new ErrorLog("error in " + sos.util.SOSClassUtil.getMethodName(), r);
                } catch(Exception ee) {
View Full Code Here

  }

  public void openHotFolder() {
    try {
      FTPProfile profile = listener.getCurrProfile();
      HashMap h = profile.changeDirectory(txtDir.getText() + "/" + txtFilename.getText());
      if(listener.hasError()) {       
        return;
      }

      java.util.Iterator it = h.keySet().iterator();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.