Added a few debug statements to the file copier.

This commit is contained in:
Bas Wiel, van de 2024-05-02 12:00:42 +02:00
parent cd90f16f8d
commit b0e3c9a451
1 changed files with 4 additions and 0 deletions

View File

@ -55,9 +55,11 @@ impl DiskBuilder {
if let Some(source_file) = downloader.get_file_by_name(filename) {
self.filesystem
.mkfile(None, source_file.get_name(), source_file.get_bytes())?;
println!("Copied {} to the VHD.", filename);
Ok(())
} else {
// If the file was not found, nothing essentially bad happens. Just continue and do nothing for now.
println!("We did not find file {}.", filename);
Ok(())
}
}
@ -71,8 +73,10 @@ impl DiskBuilder {
if let Some(source_file) = downloader.get_file_by_name(filename) {
self.filesystem
.mksysfile(source_file.get_name(), source_file.get_bytes())?;
println!("Copied {} to the VHD.", filename);
Ok(())
} else {
println!("We did not find file {}.", filename);
Ok(())
}
}