How To Set Node Path/Alias Programatically I am creating some nodes in Drupal 6 programatically by creating an empty object, setting some properties and calling node_save() on the object. 

When I print out the object again, I see new properties, since node_save() alters the node object by reference, but I don't see a path property, but from Drupal I can always view the node at 'node/NID'.

Is 'node/NID' the path?

Should I not set a 'user friendly' path property on the node itself, and just use path_set_alias() after node_save instead of mucking with the path property on the node itself?
The canonical URL for a node is http://example.com/node/&lt;nid&gt;; if you want to set a path alias, you need to set it with path_set_alias('node/' . $node-&gt;nid, $alias).