Module: ClamAV::Util
- Defined in:
- lib/clamav/util.rb
Constant Summary collapse
- UnknownPathException =
Class.new(RuntimeError)
Class Method Summary collapse
Class Method Details
.path_to_files(path) ⇒ Object
21 22 23 24 25 26 27 28 29 30 |
# File 'lib/clamav/util.rb', line 21 def Util.path_to_files(path) if Dir.exist?(path) Dir.glob(path + '/*') elsif File.exist?(path) [path] else =" (path = #{path})" raise UnknownPathException.new("#{__FILE__}:#{__LINE__} path_to_files : path argument neither a file nor a directory. Aborting. #{}") end end |