`create_node` function up into helper functions;
lstat
instead of `stat` to check file type.
create_dir_node