class FTPMVC::Filter::FilesystemAccess
Public Instance Methods
directory?(path)
click to toggle source
# File lib/ftpmvc/filter/filesystem_access.rb, line 16 def directory?(path) @fs.resolve(path).kind_of?(Directory) end
exists?(path)
click to toggle source
# File lib/ftpmvc/filter/filesystem_access.rb, line 20 def exists?(path) not @fs.resolve(path).nil? end
get(path)
click to toggle source
# File lib/ftpmvc/filter/filesystem_access.rb, line 8 def get(path) @fs.resolve(::File.dirname(path)).get(::File.basename(path)) end
index(path)
click to toggle source
# File lib/ftpmvc/filter/filesystem_access.rb, line 12 def index(path) @fs.resolve(path).index end
put(path, input)
click to toggle source
# File lib/ftpmvc/filter/filesystem_access.rb, line 24 def put(path, input) @fs.resolve(::File.dirname(path)).put(::File.basename(path), input) end