This is no longer needed if the options of `removeDirectory` is similar to that of `copyDirectory()`.