def size_limit_exceeded?
      if @max_bytes
        # note that Dir.glob ignores hidden directories (e.g. ".git") so the
        # size total correctly excludes those hidden contents that are not to
        # be uploaded after scrape. this may cause the on-disk directory size
        # to far exceed the upload size.
        globbie = ::File.join(@repo_dir, '**/*')
        size = 0
        ::Dir.glob(globbie) do |f|
          size += ::File.stat(f).size rescue 0 if ::File.file?(f)
          break if size > @max_bytes
        end
        size > @max_bytes
      else
        false
      end
    end
def size_limit_exceeded?
      if @max_bytes
        # note that Dir.glob ignores hidden directories (e.g. ".git") so the
        # size total correctly excludes those hidden contents that are not to
        # be uploaded after scrape. this may cause the on-disk directory size
        # to far exceed the upload size.
        globbie = ::File.join(@repo_dir, '**/*')
        size = 0
        ::Dir.glob(globbie) do |f|
          size += ::File.stat(f).size rescue 0 if ::File.file?(f)
          break if size > @max_bytes
        end
        size > @max_bytes
      else
        false
      end
    end
Determines if total size of files in repo_dir has exceeded size limit.

 === Return
 @return [TrueClass|FalseClass] true if size limit exceeded