added directory functionality to file node