Method: Shrine::Storage::FileSystem#exists?

Defined in:
lib/shrine/storage/file_system.rb

#exists?(id) ⇒ Boolean

Returns true if the file exists on the filesystem.

Returns:

  • (Boolean)


146
147
148
# File 'lib/shrine/storage/file_system.rb', line 146

def exists?(id)
  path(id).exist?
end