fix: remove dumb FS::symlink
function
Signed-off-by: Ryan Cao <70191398+ryanccn@users.noreply.github.com>
This commit is contained in:
parent
cf3aad9c41
commit
f1d3481a29
@ -163,19 +163,6 @@ bool ensureFolderPathExists(QString foldernamepath)
|
|||||||
return success;
|
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)
|
bool copy::operator()(const QString& offset)
|
||||||
{
|
{
|
||||||
using copy_opts = fs::copy_options;
|
using copy_opts = fs::copy_options;
|
||||||
|
@ -53,11 +53,6 @@ class FileSystemException : public ::Exception {
|
|||||||
*/
|
*/
|
||||||
void write(const QString& filename, const QByteArray& data);
|
void write(const QString& filename, const QByteArray& data);
|
||||||
|
|
||||||
/**
|
|
||||||
* create a symlink
|
|
||||||
*/
|
|
||||||
bool symlink(const QString& target, const QString& link);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* read data from a file safely\
|
* read data from a file safely\
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user