CORE-613 Throwing an error if the user selects a file from the folder picker instead of a folder #resolve