Adds function to create a files directory