Class: FTPMVC::AccessFilesystemFilter
- Inherits:
-
Filter
- Object
- Filter
- FTPMVC::AccessFilesystemFilter
show all
- Defined in:
- lib/ftpmvc/access_filesystem_filter.rb
Instance Method Summary
collapse
Methods inherited from Filter
#initialize
Constructor Details
This class inherits a constructor from FTPMVC::Filter
Instance Method Details
#directory?(path) ⇒ Boolean
15
16
17
|
# File 'lib/ftpmvc/access_filesystem_filter.rb', line 15
def directory?(path)
@fs.resolve(path).kind_of?(Directory)
end
|
#exists?(path) ⇒ Boolean
19
20
21
|
# File 'lib/ftpmvc/access_filesystem_filter.rb', line 19
def exists?(path)
not @fs.resolve(path).nil?
end
|
#get(path) ⇒ Object
7
8
9
|
# File 'lib/ftpmvc/access_filesystem_filter.rb', line 7
def get(path)
@fs.resolve(::File.dirname(path)).get(::File.basename(path))
end
|
#index(path) ⇒ Object
11
12
13
|
# File 'lib/ftpmvc/access_filesystem_filter.rb', line 11
def index(path)
@fs.resolve(path).index
end
|