Method: Databricks::Resources::Dbfs#list

Defined in:
lib/databricks/resources/dbfs.rb

#list(path) ⇒ Object

List a path

Parameters
  • path (String): Path to be listed

Result
  • Array<String>: List of DBFS paths


17
18
19
# File 'lib/databricks/resources/dbfs.rb', line 17

def list(path)
  (get_json('dbfs/list', { path: path })['files'] || []).map { |properties| new_resource(:file, properties) }
end