Islam Imad

Results comments of Islam Imad

I want to work on this Issue :)

> [@Islam-Imad](https://github.com/Islam-Imad) hi, still working on this? i could finish it if you want I was working on some issues in llvm project. it takes my time :) , i...

Sorry For that :) i will start working on it and refer back for any questions :)

unsafe { let dirp = libc::opendir(c_path.as_ptr()); // DIR *opendir(const char *name); assert!(!dirp.is_null()); let mut entries = Vec::new(); loop { let entry_ptr = libc::readdir(dirp); if entry_ptr.is_null() { break; } let name_ptr...

My assumption is that libc::readdir is portable but the running of Mac os fails sense it does't find a matching function to call. FreeBSD read files but with empty names...

> Sorry, I don't understand what you are trying to say. It fails on FreeBSD -- how does it fail? And then later you suddenly mention macOS, does it also...

I have opened the PR to see the changes.

` if #[cfg(target_os = "macos")] { // macOS uses readdir_r } else { // other use readdir } ` should i implement it like that ?

> Sorry, I don't understand what you are trying to say. It fails on FreeBSD -- how does it fail? And then later you suddenly mention macOS, does it also...