mode |= 0111;
mode |= 0110;  result.put(0); result.put(0); result.put(mode); result.put(1); result.put(501); result.put(501); result.put(0); result.put(path.getLength());  result.put(path.getLastModified() / 1000); result.put(path.getLastModified() / 1000); result.put(path.getLastModified() / 1000); result.put(4096); result.put((path.getLength() + 4095) / 4096);  result.put("dev", 0); result.put("ino", 0);
  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;  }