Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.12.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.