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

Method from_path

datafusion/datasource/src/mod.rs:266–269  ·  view source on GitHub ↗

Return a file reference from the given path

(path: String)

Source from the content-addressed store, hash-verified

264
265 /// Return a file reference from the given path
266 pub fn from_path(path: String) -> Result<Self> {
267 let size = std::fs::metadata(path.clone())?.len();
268 Ok(Self::new(path, size))
269 }
270
271 /// Return the path of this partitioned file
272 pub fn path(&self) -> &Path {

Callers

nothing calls this directly

Calls 3

newFunction · 0.85
lenMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected