method
delete_entry
v6.1.7.7 -
Show latest stable
- Class:
ActiveSupport::Cache::FileStore
delete_entry(key, **options)private
No documentation available.
# File activesupport/lib/active_support/cache/file_store.rb, line 92
def delete_entry(key, **options)
if File.exist?(key)
begin
File.delete(key)
delete_empty_directories(File.dirname(key))
true
rescue => e
# Just in case the error was caused by another process deleting the file first.
raise e if File.exist?(key)
false
end
end
end