Uploaded image for project: 'MINA SSHD'
  1. MINA SSHD
  2. SSHD-345

Add isDirectory, isSymlink, isRegularFIle, and isOther methods to Attributes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.12.0
    • 0.13.0
    • None

    Description

      Calling DefaultSftpClient.lstat or stat returns an Attributes object. It would be helpful if the Attributes object implemented or had the methods available of the Java 7 BasicFileAttributes interface.

      The current missing methods are isDirectory, isSymlink, isRegularFIle, and isOther. This information is returned by the stat and without these methods, there's no good way to determine what time of file a Path is without using ChannelExec to do a test or stat manually.

      Attachments

        Activity

          People

            gnodet Guillaume Nodet
            jchien Jonathan Chien
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: