MCPcopy Create free account
hub / github.com/apache/datafusion / create_file

Function create_file

datafusion/datasource/src/url.rs:1027–1032  ·  view source on GitHub ↗

Creates a file with "hello world" content at the specified path

(object_store: &dyn ObjectStore, path: &str)

Source from the content-addressed store, hash-verified

1025
1026 /// Creates a file with "hello world" content at the specified path
1027 async fn create_file(object_store: &dyn ObjectStore, path: &str) {
1028 object_store
1029 .put(&Path::from(path), PutPayload::from_static(b"hello world"))
1030 .await
1031 .expect("failed to create test file");
1032 }
1033
1034 /// Runs "list_prefixed_files" with no prefix to list all files and returns their paths
1035 ///

Calls 1

putMethod · 0.45

Tested by 3

test_list_filesFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…