i know kung fu

This commit is contained in:
Nathan Rashleigh committed 2025-09-16 23:21:29 +10:00
1 parent f81bffd339
commit c422878493
3 files changed
+176 -68

No files matched your search

+6
View File
@@ -13,6 +13,8 @@ use rekordcrate::pdb::Table;
use rekordcrate::pdb::{Header, PlaylistTreeNode, PlaylistTreeNodeId};
use walkdir::WalkDir;
use std::env;
use std::fs::create_dir;
use std::fs::create_dir_all;
use std::{fs::exists, path::Path};
use db::Database;
@@ -37,6 +39,8 @@ fn main() -> rekordcrate::Result<()> {
// None => println!("wasnt there"),
// }
create_dir_all("./data/PIONEER")?;
assert!(env::set_current_dir(&Path::new("./data")).is_ok());
// strip the leading slash of the path to make it relative
@@ -102,6 +106,8 @@ fn main() -> rekordcrate::Result<()> {
println!("export={:?}", export);
db.header.tables.iter().for_each(|t| println!("{:?}", t.page_type));
// write header
// write page
// write row_groups