revert back files.get
refactored getBucketFolders