The FileUtils.rmdir deletes just empty directories and secretly fails to
do so in Ruby 2.4. Ruby 2.5 fixes the behavior [1] and FileUtiles.rmdir
fails with error such as:
Errno::ENOTEMPTY: Directory not empty @ dir_s_rmdir - /tmp/d20180114-8362-1iuw12n_other
The FileUtils.rmdir deletes just empty directories and secretly fails to do so in Ruby 2.4. Ruby 2.5 fixes the behavior [1] and FileUtiles.rmdir fails with error such as:
[1] https://bugs.ruby-lang.org/issues/13889