Implemented the 'uploadFolder()' method to recursively upload all subfolders and their files