adding recursive readdir system to allow for folders within controller folder