All pastes #565075 Raw Edit

dsgdfsg

public ruby v1 · immutable
·published 2007-06-13 21:23 UTC
rendered paste body
module Find    def match_recursive(*paths)        matched = []        find(*paths) { |path| matched << path if yield path }        return matched    end    module_function :match_recursive        def check_file(file)        if File.exist?(file) and not File.symlink?(file) and File.lstat(file).size != 0            if File.split(file)[1] =~ /\A\.\w*\Z/                false            elsif File.split(file)[1] =~ /\A.*\.pgp\Z/                true            else                true            end        else            false        end    end    module_function :check_fileend