commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1085198 - /commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPFile.java
Date Thu, 24 Mar 2011 23:40:58 GMT
Author: sebb
Date: Thu Mar 24 23:40:58 2011
New Revision: 1085198

URL: http://svn.apache.org/viewvc?rev=1085198&view=rev
Log:
Update formatted output

Modified:
    commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPFile.java

Modified: commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPFile.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPFile.java?rev=1085198&r1=1085197&r2=1085198&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPFile.java (original)
+++ commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPFile.java Thu Mar
24 23:40:58 2011
@@ -395,11 +395,12 @@ public class FTPFile implements Serializ
         sb.append(permissionToString(USER_ACCESS));
         sb.append(permissionToString(GROUP_ACCESS));
         sb.append(permissionToString(WORLD_ACCESS));
-        fmt.format(" %4d %-8s %-8s", Integer.valueOf(getHardLinkCount()), getGroup(), getUser());
+        fmt.format(" %4d", Integer.valueOf(getHardLinkCount()));
+        fmt.format(" %-8s %-8s", "","",getGroup(), getUser());
         fmt.format(" %8d", Long.valueOf(getSize()));
         Calendar timestamp = getTimestamp();
         if (timestamp != null) {
-            fmt.format(" %1$tb %1$td  %1$tY", timestamp);
+            fmt.format(" %1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS", timestamp);
             fmt.format(" %1$tZ", timestamp);
             sb.append(' ');
         }



Mime
View raw message