This test fails the second time I run it. I have to then manually delete
the makedirs_test folder that is created. The test tries to do
system(“rmdir makedirs_test/second_dir”), but that fails since “/” is
used. How come its not failing in Snap? What is a platform-independent
way of deleting a folder hierarchy?
FileUtils.rm_rf(“target”) is a platform independent way. It is also ok,
because FileUtils is used by MSpec itself. It doesn’t fail in SNAP
because SNAP does a tfpt treeclean -delete between each run.
This test fails the second time I run it. I have to then manually delete
the makedirs_test folder that is created. The test tries to do
system(“rmdir makedirs_test/second_dir”), but that fails since “/” is
used. How come its not failing in Snap? What is a platform-independent
way of deleting a folder hierarchy?