The `rm` command could be dangerous if there is a bug in it. We can accidentally lose data. Therefore, it is important to test it comprehensively. The [test/Main.hs](https://github.com/composewell/streamly-coreutils/blob/32dbdb004e4efc07b343730c3036c29d118de736/test/Main.hs#L29) outlines some test cases which can be implemented. For some pointers for creating temp files for testing see the filesystem event tests in streamly.