Added bucket check for get files