streamly
streamly copied to clipboard
Ensure a "/" is appended to dir types paths when reading using readdir
This way we can always use extendDir API to append paths more safely as we know all system generated dir paths are going to have "/" appended to them.
If we have to append "/" consistently across filesystems then we will have to fallback to stat when the type info is not available as a result of readdir syscall itself. This can be controlled via a flag. We can introduce this flag in the next release as well.