01: package ch.ethz.ssh2;
02:
03: /**
04: * A <code>SFTPv3DirectoryEntry</code> as returned by {@link SFTPv3Client#ls(String)}.
05: *
06: * @author Christian Plattner, plattner@inf.ethz.ch
07: * @version $Id: SFTPv3DirectoryEntry.java,v 1.2 2006/08/18 22:26:35 cplattne Exp $
08: */
09:
10: public class SFTPv3DirectoryEntry {
11: /**
12: * A relative name within the directory, without any path components.
13: */
14: public String filename;
15:
16: /**
17: * An expanded format for the file name, similar to what is returned by
18: * "ls -l" on Un*x systems.
19: * <p>
20: * The format of this field is unspecified by the SFTP v3 protocol.
21: * It MUST be suitable for use in the output of a directory listing
22: * command (in fact, the recommended operation for a directory listing
23: * command is to simply display this data). However, clients SHOULD NOT
24: * attempt to parse the longname field for file attributes; they SHOULD
25: * use the attrs field instead.
26: * <p>
27: * The recommended format for the longname field is as follows:<br>
28: * <code>-rwxr-xr-x 1 mjos staff 348911 Mar 25 14:29 t-filexfer</code>
29: */
30: public String longEntry;
31:
32: /**
33: * The attributes of this entry.
34: */
35: public SFTPv3FileAttributes attributes;
36: }
|