class Koine::FileSystem::FileSystem

Inspired on flysystem.thephpleague.com/v1/docs/usage/filesystem-api/

Public Class Methods

new(adapter) click to toggle source
# File lib/koine/file_system/file_system.rb, line 8
def initialize(adapter)
  @adapter = adapter
end

Public Instance Methods

copy(from, to) click to toggle source
# File lib/koine/file_system/file_system.rb, line 52
def copy(from, to)
  @adapter.copy(from, to)
end
create_dir(path) click to toggle source
# File lib/koine/file_system/file_system.rb, line 64
def create_dir(path)
  @adapter.create_dir(path)
end
delete(path) click to toggle source
# File lib/koine/file_system/file_system.rb, line 40
def delete(path)
  @adapter.delete(path)
end
delete_dir(path) click to toggle source
# File lib/koine/file_system/file_system.rb, line 68
def delete_dir(path)
  @adapter.delete_dir(path)
end
has?(path) click to toggle source
# File lib/koine/file_system/file_system.rb, line 36
def has?(path)
  @adapter.has?(path)
end
list(path, recursive: false) click to toggle source
# File lib/koine/file_system/file_system.rb, line 72
def list(path, recursive: false)
  @adapter.list(path, recursive: recursive)
end
mime_type(path) click to toggle source
# File lib/koine/file_system/file_system.rb, line 56
def mime_type(path)
  @adapter.mime_type(path)
end
read(path, &block) click to toggle source
# File lib/koine/file_system/file_system.rb, line 12
def read(path, &block)
  @adapter.read(path, &block)
end
read_and_delete(path) click to toggle source
# File lib/koine/file_system/file_system.rb, line 44
def read_and_delete(path)
  @adapter.read_and_delete(path)
end
read_stream(path, &block) click to toggle source
# File lib/koine/file_system/file_system.rb, line 16
def read_stream(path, &block)
  @adapter.read_stream(path, &block)
end
rename(from, to) click to toggle source
# File lib/koine/file_system/file_system.rb, line 48
def rename(from, to)
  @adapter.rename(from, to)
end
size(path) click to toggle source
# File lib/koine/file_system/file_system.rb, line 60
def size(path)
  @adapter.size(path)
end
update(path, contents, options: {}) click to toggle source
# File lib/koine/file_system/file_system.rb, line 28
def update(path, contents, options: {})
  @adapter.update(path, contents, options: options)
end
update_stream(path, contents, options: {}) click to toggle source
# File lib/koine/file_system/file_system.rb, line 32
def update_stream(path, contents, options: {})
  @adapter.update_stream(path, contents, options: options)
end
write(path, contents, options: {}) click to toggle source
# File lib/koine/file_system/file_system.rb, line 20
def write(path, contents, options: {})
  @adapter.write(path, contents, options: options)
end
write_stream(path, contents, options: {}) click to toggle source
# File lib/koine/file_system/file_system.rb, line 24
def write_stream(path, contents, options: {})
  @adapter.write_stream(path, contents, options: options)
end