KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ch > ethz > ssh2 > SFTPv3DirectoryEntry


1
2 package ch.ethz.ssh2;
3
4 /**
5  * A <code>SFTPv3DirectoryEntry</code> as returned by {@link SFTPv3Client#ls(String)}.
6  *
7  * @author Christian Plattner, plattner@inf.ethz.ch
8  * @version $Id: SFTPv3DirectoryEntry.java,v 1.2 2006/08/18 22:26:35 cplattne Exp $
9  */

10
11 public class SFTPv3DirectoryEntry
12 {
13     /**
14      * A relative name within the directory, without any path components.
15      */

16     public String JavaDoc filename;
17
18     /**
19      * An expanded format for the file name, similar to what is returned by
20      * "ls -l" on Un*x systems.
21      * <p>
22      * The format of this field is unspecified by the SFTP v3 protocol.
23      * It MUST be suitable for use in the output of a directory listing
24      * command (in fact, the recommended operation for a directory listing
25      * command is to simply display this data). However, clients SHOULD NOT
26      * attempt to parse the longname field for file attributes; they SHOULD
27      * use the attrs field instead.
28      * <p>
29      * The recommended format for the longname field is as follows:<br>
30      * <code>-rwxr-xr-x 1 mjos staff 348911 Mar 25 14:29 t-filexfer</code>
31      */

32     public String JavaDoc longEntry;
33
34     /**
35      * The attributes of this entry.
36      */

37     public SFTPv3FileAttributes attributes;
38 }
39
Popular Tags