Browse Source

Re-add get_file_io method

pull/2691/head
Kat 2 years ago
parent
commit
2f6e693653
  1. 6
      app/services/storage/local_disk_service.rb

6
app/services/storage/local_disk_service.rb

@ -13,6 +13,12 @@ module Storage
File.open(path, "r") File.open(path, "r")
end end
def get_file_io(filename)
path = Rails.root.join("tmp/storage", filename)
File.open(path, "r")
end
def write_file(filename, data) def write_file(filename, data)
path = Rails.root.join("tmp/storage", filename) path = Rails.root.join("tmp/storage", filename)

Loading…
Cancel
Save