com.jscape.inet.sftp.events

## Class SftpChangeDirEvent

- java.lang.Object
- - com.jscape.inet.sftp.events.SftpEvent
  - - com.jscape.inet.sftp.events.SftpChangeDirEvent

-     public class SftpChangeDirEvent
      extends SftpEvent

  This event is fired when the remote directory path is changed on the server.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SftpChangeDirEvent(Sftp source, java.lang.String directory)` Creates a new SftpChangeDirEvent instance

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `accept(SftpListener listener)` The "backwards dispatching" support.
    `java.lang.String` | `getDirectory()` Gets the new remote directory name

    - ### Methods inherited from class com.jscape.inet.sftp.events.SftpEvent

      `getSource`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SftpChangeDirEvent

          public SftpChangeDirEvent(Sftp source,
                                    java.lang.String directory)

      Creates a new SftpChangeDirEvent instance
      Parameters:
        `source` - the source of this event
        `directory` - the new remote directory name

  - ### Method Detail

    - #### getDirectory

          public java.lang.String getDirectory()

      Gets the new remote directory name
      Returns:
        remote directory name

    - #### accept

          public void accept(SftpListener listener)

      The "backwards dispatching" support.
      Specified by:
        `accept` in class `SftpEvent`
      Parameters:
        `listener` - the event listener

Copyright © JSCAPE LLC. 1999-2021. All Rights Reserved