removed print statement
This commit is contained in:
parent
28c4937eda
commit
f46eecf432
1 changed files with 0 additions and 8 deletions
|
|
@ -8,14 +8,6 @@ pub fn init_db() -> Result<Connection, rusqlite::Error> {
|
|||
|
||||
let filepath = Path::new(&filename);
|
||||
|
||||
match filepath.canonicalize() {
|
||||
Ok(abs_path) => println!("Absolute filepath: {:?}", abs_path),
|
||||
Err(_) => println!(
|
||||
"Filepath (not yet created): {:?}",
|
||||
fs::canonicalize(".").unwrap().join(&filename)
|
||||
),
|
||||
}
|
||||
|
||||
if let Some(parent) = filepath.parent() {
|
||||
if !parent.as_os_str().is_empty() {
|
||||
fs::create_dir_all(parent).expect("Failed to create database directory");
|
||||
|
|
|
|||
Loading…
Reference in a new issue