Category: ruby-3.1.2
-
Confusing behavior of File.dirname
If you are using File.dirname to get the directory path and delete and do some other processing on path, then make sure you consider below use cases.
If you are using File.dirname to get the directory path and delete and do some other processing on path, then make sure you consider below use cases.