|
@@ -85,11 +85,13 @@ public class PBImageDelimitedTextWriter extends PBImageTextWriter {
|
|
buffer.append(path.toString());
|
|
buffer.append(path.toString());
|
|
PermissionStatus p = null;
|
|
PermissionStatus p = null;
|
|
boolean isDir = false;
|
|
boolean isDir = false;
|
|
|
|
+ boolean hasAcl = false;
|
|
|
|
|
|
switch (inode.getType()) {
|
|
switch (inode.getType()) {
|
|
case FILE:
|
|
case FILE:
|
|
INodeFile file = inode.getFile();
|
|
INodeFile file = inode.getFile();
|
|
p = getPermission(file.getPermission());
|
|
p = getPermission(file.getPermission());
|
|
|
|
+ hasAcl = file.hasAcl() && file.getAcl().getEntriesCount() > 0;
|
|
append(buffer, file.getReplication());
|
|
append(buffer, file.getReplication());
|
|
append(buffer, formatDate(file.getModificationTime()));
|
|
append(buffer, formatDate(file.getModificationTime()));
|
|
append(buffer, formatDate(file.getAccessTime()));
|
|
append(buffer, formatDate(file.getAccessTime()));
|
|
@@ -102,6 +104,7 @@ public class PBImageDelimitedTextWriter extends PBImageTextWriter {
|
|
case DIRECTORY:
|
|
case DIRECTORY:
|
|
INodeDirectory dir = inode.getDirectory();
|
|
INodeDirectory dir = inode.getDirectory();
|
|
p = getPermission(dir.getPermission());
|
|
p = getPermission(dir.getPermission());
|
|
|
|
+ hasAcl = dir.hasAcl() && dir.getAcl().getEntriesCount() > 0;
|
|
append(buffer, 0); // Replication
|
|
append(buffer, 0); // Replication
|
|
append(buffer, formatDate(dir.getModificationTime()));
|
|
append(buffer, formatDate(dir.getModificationTime()));
|
|
append(buffer, formatDate(0)); // Access time.
|
|
append(buffer, formatDate(0)); // Access time.
|
|
@@ -129,7 +132,8 @@ public class PBImageDelimitedTextWriter extends PBImageTextWriter {
|
|
}
|
|
}
|
|
assert p != null;
|
|
assert p != null;
|
|
String dirString = isDir ? "d" : "-";
|
|
String dirString = isDir ? "d" : "-";
|
|
- append(buffer, dirString + p.getPermission().toString());
|
|
|
|
|
|
+ String aclString = hasAcl ? "+" : "";
|
|
|
|
+ append(buffer, dirString + p.getPermission().toString() + aclString);
|
|
append(buffer, p.getUserName());
|
|
append(buffer, p.getUserName());
|
|
append(buffer, p.getGroupName());
|
|
append(buffer, p.getGroupName());
|
|
return buffer.toString();
|
|
return buffer.toString();
|