You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Jonathan Chien (JIRA)" <ji...@apache.org> on 2014/08/28 03:09:59 UTC
[jira] [Created] (SSHD-345) Add isDirectory, isSymlink,
isRegularFIle, and isOther methods to Attributes
Jonathan Chien created SSHD-345:
-----------------------------------
Summary: Add isDirectory, isSymlink, isRegularFIle, and isOther methods to Attributes
Key: SSHD-345
URL: https://issues.apache.org/jira/browse/SSHD-345
Project: MINA SSHD
Issue Type: Improvement
Affects Versions: 0.12.0
Reporter: Jonathan Chien
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.
--
This message was sent by Atlassian JIRA
(v6.2#6252)