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

Function create_fifo_file

datafusion/core/tests/fifo/mod.rs:62–70  ·  view source on GitHub ↗
(tmp_dir: &TempDir, file_name: &str)

Source from the content-addressed store, hash-verified

60 }
61
62 fn create_fifo_file(tmp_dir: &TempDir, file_name: &str) -> Result<PathBuf> {
63 let file_path = tmp_dir.path().join(file_name);
64 // Simulate an infinite environment via a FIFO file
65 if let Err(e) = unistd::mkfifo(&file_path, stat::Mode::S_IRWXU) {
66 exec_err!("{}", e)
67 } else {
68 Ok(file_path)
69 }
70 }
71
72 async fn write_to_fifo(
73 file: &mut tokio::fs::File,

Calls 2

joinMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…