Add a comment explaining file_readable

This commit is contained in:
Evan Broder 2013-06-29 22:46:52 -07:00
parent 2dbc700fc3
commit c52973e7de

View File

@ -44,6 +44,9 @@ module Stripe
end
def self.file_readable(file)
# This is nominally equivalent to File.readable?, but that can
# report incorrect results on some more oddball filesystems
# (such as AFS)
begin
File.open(file) { |f| }
rescue