mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-08-24 00:00:51 -04:00
Add a comment explaining file_readable
This commit is contained in:
parent
2dbc700fc3
commit
c52973e7de
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user