Method: Longleaf::FilesystemStorageLocation#available?
- Defined in:
- lib/longleaf/models/filesystem_storage_location.rb
#available? ⇒ Boolean
Checks that the path and metadata path defined in this location are available
34 35 36 37 38 |
# File 'lib/longleaf/models/filesystem_storage_location.rb', line 34 def available? raise StorageLocationUnavailableError.new("Path does not exist or is not a directory: #{@path}")\ unless Dir.exist?(@path) .available? end |