File.exist? should be used instead.
Might consider using File.file? instead of File.exist? since File.exist? will
return true when given the path of a file or a directory.
Addresses the following warning:
lib/google/api_client/service/simple_file_store.rb:127: warning: File.exists? is a deprecated name, use File.exist? instead
# Read the entire cache file from disk.
# Will avoid reading if there have been no changes.
def read_file
# Read the entire cache file from disk.
# Will avoid reading if there have been no changes.
def read_file
- if !File.exists? @file_path
+ if !File.exist? @file_path
@cache = nil
else
# Check for changes after our last read or write.
@cache = nil
else
# Check for changes after our last read or write.