|
@@ -85,6 +85,11 @@ public class FileStatus implements Writable, Comparable {
|
|
|
this.group = (group == null) ? "" : group;
|
|
|
this.symlink = symlink;
|
|
|
this.path = path;
|
|
|
+ // The variables isdir and symlink indicate the type:
|
|
|
+ // 1. isdir implies directory, in which case symlink must be null.
|
|
|
+ // 2. !isdir implies a file or symlink, symlink != null implies a
|
|
|
+ // symlink, otherwise it's a file.
|
|
|
+ assert (isdir && symlink == null) || !isdir;
|
|
|
}
|
|
|
|
|
|
/**
|