Sha256: 2f3bac738211b6a739681594724367d39d984b518b316cb6855f29827c95ed9c
Contents?: true
Size: 584 Bytes
Versions: 7
Compression:
Stored size: 584 Bytes
Contents
# 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<Pathname>] 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
Version data entries
7 entries across 7 versions & 1 rubygems