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);  result.put("mode", mode); result.put("nlink", 1); result.put("uid", 501); result.put("gid", 501); result.put("rdev", 0);  result.put(new StringValueImpl("size"), new LongValue(path.getLength()));  result.put("atime", path.getLastModified() / 1000); result.put("mtime", path.getLastModified() / 1000); result.put("ctime", path.getLastModified() / 1000); result.put("blksize", 4096); result.put("blocks", (path.getLength() + 4095) / 4096);
result.put("atime", status.getAtime()); result.put("mtime", status.getMtime()); result.put("ctime", status.getCtime()); result.put("blksize", status.getBlksize()); result.put("blocks", status.getBlocks());
  public static Value stat(Env env, Path path)  {    // XXX: what if it doesn't exist?    ArrayValue result = new ArrayValueImpl();    int mode = 0;    if (path.isDirectory())      mode |= 0040111; // S_IFDIR    else      mode |= 0100000; // S_IFREG        if (path.canRead())      mode |= 0444;    if (path.canWrite())      mode |= 0220;    if (path.canExecute())      mode |= 0110;    result.put(0); // dev    result.put(0); // ino    result.put(mode);    result.put(1); // nlink    result.put(501); // uid    result.put(501); // gid    result.put(0); // rdev    result.put(path.getLength()); // size    result.put(path.getLastModified() / 1000); // atime    result.put(path.getLastModified() / 1000); // mtime    result.put(path.getLastModified() / 1000); // ctime    result.put(4096); // blksize    result.put((path.getLength() + 4095) / 4096); // blocks    result.put("dev", 0);    result.put("ino", 0);        result.put("mode", mode);    result.put("nlink", 1);    result.put("uid", 501);    result.put("gid", 501);    result.put("rdev", 0);        result.put(new StringValueImpl("size"), new LongValue(path.getLength()));    result.put("atime", path.getLastModified() / 1000);    result.put("mtime", path.getLastModified() / 1000);    result.put("ctime", path.getLastModified() / 1000);    result.put("blksize", 4096);    result.put("blocks", (path.getLength() + 4095) / 4096);    return result;  }