Method: Databricks::Resources::Dbfs#put

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

#put(path, local_file) ⇒ Object

Put a new file

Parameters
  • path (String): Path to the file to create

  • local_file (String): Path to the local file to put



26
27
28
29
30
31
32
33
34
35
# File 'lib/databricks/resources/dbfs.rb', line 26

def put(path, local_file)
  post(
    'dbfs/put',
    {
      path: path,
      contents: ::File.new(local_file, 'rb'),
      overwrite: true
    }
  )
end