attrView = Files.getFileAttributeView(path, BasicFileAttributeView.class);
}
BasicFileAttributes attrs = attrView.readAttributes();
// The timestamp seems to come from JavaScript as a decimal value of seconds
FileTime newATime = FileTime.fromMillis((long)(atime * 1000.0));
FileTime newMTime = FileTime.fromMillis((long)(mtime * 1000.0));
attrView.setTimes(newMTime, newATime, attrs.creationTime());
} catch (IOException ioe) {
throw new NodeOSException(getErrorCode(ioe), ioe, path.toString());
}
return new Object[] { Context.getUndefinedValue(), Context.getUndefinedValue() };