module ClamAV::Util
Constants
- UnknownPathException
Public Class Methods
path_to_files(path)
click to toggle source
# 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 message =" (path = #{path})" raise UnknownPathException.new("#{__FILE__}:#{__LINE__} path_to_files : path argument neither a file nor a directory. Aborting. #{message}") end end