removed debug stuff

This commit is contained in:
2021-11-27 17:29:36 +01:00
parent ade1518d48
commit 03879ee42e

View File

@@ -258,10 +258,8 @@ impl<'a> SmbClient<'a> {
loop {
match result_from_ptr_mut(read_dir_fn(self.ctx, dir)) {
Ok(dir_struct) => {
print!("Success: ");
unsafe{
let c_str: &CStr = CStr::from_ptr(&(*dir_struct).name[0]) ;
println!("{}", c_str.to_str().unwrap());
let test = Cow::Borrowed(c_str.to_str().unwrap()).into_owned();
return_dirs.push(test);
}