Example #1
0
 public String getType(Env env) {
   if (_path.isLink()) {
     return "link";
   } else if (_path.isDirectory()) {
     return "dir";
   } else if (_path.isFile()) {
     return "file";
   } else {
     /// XXX: throw RuntimeException
     return null;
   }
 }
Example #2
0
 public boolean isLink(Env env) {
   return _path.isLink();
 }