1 #include <msp/fs/dir.h>
2 #include <msp/fs/stat.h>
3 #include <msp/fs/utils.h>
4 #include "filetarget.h"
10 void Task::add_target(const FileTarget &t)
12 targets.push_back(&t);
15 void Task::set_unlink(bool u)
22 for(const FileTarget *t: targets)
24 const FS::Path &f = t->get_path();
27 // If the file exists, the directory it's in must exist too
32 FS::Path dir = FS::dirname(f);
34 FS::mkpath(dir, 0755);