initial support for add to PATH action
Signed-off-by: Ryan Cao <70191398+ryanccn@users.noreply.github.com>
This commit is contained in:
parent
2999afe781
commit
7b1e68bfa8
4 changed files with 49 additions and 0 deletions
|
@ -163,6 +163,19 @@ bool ensureFolderPathExists(QString foldernamepath)
|
|||
return success;
|
||||
}
|
||||
|
||||
bool symlink(const QString& source, const QString& target)
|
||||
{
|
||||
std::error_code err;
|
||||
|
||||
fs::create_symlink(toStdString(source), toStdString(target));
|
||||
|
||||
if (err) {
|
||||
qWarning() << "Failed to symlink files:" << QString::fromStdString(err.message());
|
||||
}
|
||||
|
||||
return err.value() == 0;
|
||||
}
|
||||
|
||||
bool copy::operator()(const QString& offset)
|
||||
{
|
||||
using copy_opts = fs::copy_options;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue