- FS::mkpath(FS::dirname(dst_path), 0755);
-
- // Remove old file. Not doing this would cause Bad Stuff when installing libraries.
- if(FS::exists(dst_path))
- {
- try
- {
- unlink(dst_path);
- }
- catch(const exception &e)
- {
- IO::print(IO::cerr, "%s\n", e.what());
- status = Task::ERROR;
- return;
- }
- }