Home | History | Annotate | Download | only in ssh2
      1 /*
      2  * Copyright (c) 2006-2011 Christian Plattner. All rights reserved.
      3  * Please refer to the LICENSE.txt for licensing details.
      4  */
      5 package ch.ethz.ssh2;
      6 
      7 /**
      8  * A <code>SFTPv3DirectoryEntry</code> as returned by {@link SFTPv3Client#ls(String)}.
      9  *
     10  * @author Christian Plattner
     11  * @version 2.50, 03/15/10
     12  */
     13 
     14 public class SFTPv3DirectoryEntry
     15 {
     16 	/**
     17 	 *  A relative name within the directory, without any path components.
     18 	 */
     19 	public String filename;
     20 
     21 	/**
     22 	 * An expanded format for the file name, similar to what is returned by
     23 	 * "ls -l" on Un*x systems.
     24 	 * <p>
     25 	 * The format of this field is unspecified by the SFTP v3 protocol.
     26 	 * It MUST be suitable for use in the output of a directory listing
     27 	 * command (in fact, the recommended operation for a directory listing
     28 	 * command is to simply display this data).  However, clients SHOULD NOT
     29 	 * attempt to parse the longname field for file attributes; they SHOULD
     30 	 * use the attrs field instead.
     31 	 * <p>
     32 	 * The recommended format for the longname field is as follows:<br>
     33 	 * <code>-rwxr-xr-x   1 mjos     staff      348911 Mar 25 14:29 t-filexfer</code>
     34 	 */
     35 	public String longEntry;
     36 
     37 	/**
     38 	 * The attributes of this entry.
     39 	 */
     40 	public SFTPv3FileAttributes attributes;
     41 }
     42