comparison app/src/main/java/ch/ethz/ssh2/SFTPv3DirectoryEntry.java @ 438:d29cce60f393

migrate from Eclipse to Android Studio
author Carl Byington <carl@five-ten-sg.com>
date Thu, 03 Dec 2015 11:23:55 -0800
parents src/ch/ethz/ssh2/SFTPv3DirectoryEntry.java@d2b303406d63
children
comparison
equal deleted inserted replaced
437:208b31032318 438:d29cce60f393
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 public class SFTPv3DirectoryEntry implements SFTPDirectoryEntry {
14 /**
15 * A relative name within the directory, without any path components.
16 */
17 public String filename;
18
19 /**
20 * An expanded format for the file name, similar to what is returned by
21 * "ls -l" on Un*x systems.
22 * <p/>
23 * The format of this field is unspecified by the SFTP v3 protocol.
24 * It MUST be suitable for use in the output of a directory listing
25 * command (in fact, the recommended operation for a directory listing
26 * command is to simply display this data). However, clients SHOULD NOT
27 * attempt to parse the longname field for file attributes; they SHOULD
28 * use the attrs field instead.
29 * <p/>
30 * The recommended format for the longname field is as follows:<br>
31 * <code>-rwxr-xr-x 1 mjos staff 348911 Mar 25 14:29 t-filexfer</code>
32 */
33 public String longEntry;
34
35 /**
36 * The attributes of this entry.
37 */
38 public SFTPv3FileAttributes attributes;
39
40 public String getFilename() {
41 return filename;
42 }
43
44 public SFTPv3FileAttributes getAttributes() {
45 return attributes;
46 }
47
48 @Override
49 public String toString() {
50 final StringBuilder sb = new StringBuilder("SFTPv3DirectoryEntry{");
51 sb.append("filename='").append(filename).append('\'');
52 sb.append(", attributes=").append(attributes);
53 sb.append('}');
54 return sb.toString();
55 }
56 }