# frozen_string_literal: true require 'eac_fs/file_info' require 'eac_ruby_utils/core_ext' require 'tmpdir' module Aranha module Selenium class Session < ::SimpleDelegator class Downloads # @return [Enumerable] def current dir.glob('**/*').select do |path| !::EacFs::FileInfo.new(path).open? && path.size.positive? rescue Errno::ENOENT false end end # @return [Pathname] def dir @dir ||= ::Dir.mktmpdir.to_pathname end end end end end