Skip to content

Commit

Permalink
Fix example/build.rs (#263)
Browse files Browse the repository at this point in the history
Fix database deletion check in example/build.rs. The database is a file, not a directory.
  • Loading branch information
Electron100 authored Jul 17, 2024
1 parent 2dbfb30 commit 6c50004
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ fn main() {
std::fs::remove_dir_all(dir).unwrap();
}
let db = "db.sqlite";
if std::path::Path::new(&db).is_dir() {
if std::path::Path::new(&db).is_file() {
std::fs::remove_file(db).unwrap();
}
}

0 comments on commit 6c50004

Please sign in to comment.