result.put(new StringValueImpl("size"), new LongValue(path.getLength()));
  public static Value stat(Env env, Path path)  {    // XXX: what if it doesn't exist?    ArrayValue result = new ArrayValueImpl();    result.put(new StringValueImpl("size"), new LongValue(path.getLength()));    int mode = 0;    if (path.isDirectory())      mode |= 01000;    if (path.canRead())      mode |= 0444;    if (path.canWrite())      mode |= 0222;    if (path.canExecute())      mode |= 0111;        result.put(new StringValueImpl("mode"), new LongValue(mode));    return result;  }