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