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

Method to_string

datafusion/catalog/src/listing_schema.rs:207–215  ·  view source on GitHub ↗

Format the path with a '/' appended if its a directory. Clients (eg. object_store listing) can and will use the presence of trailing slash as a heuristic

(&self)

Source from the content-addressed store, hash-verified

205 /// Format the path with a '/' appended if its a directory.
206 /// Clients (eg. object_store listing) can and will use the presence of trailing slash as a heuristic
207 fn to_string(&self) -> Option<String> {
208 self.path.to_str().map(|path| {
209 if self.is_dir {
210 format!("{path}/")
211 } else {
212 path.to_string()
213 }
214 })
215 }
216}
217
218#[cfg(test)]

Callers 15

create_fileFunction · 0.45
resolve_tableMethod · 0.45
resolveMethod · 0.45
resolveMethod · 0.45
resolveMethod · 0.45
test_configFunction · 0.45
make_routinesMethod · 0.45

Calls 1

mapMethod · 0.45

Tested by 3

test_configFunction · 0.36