Added a function to store directory/file contents under
/model/filecontents.