mirror of
https://github.com/audacity/linuxdeploy.git
synced 2026-02-03 19:46:41 -06:00
Expose file copying helper in public interface
This commit is contained in:
parent
9dc10fc0fc
commit
3fd595a63b
@ -66,6 +66,9 @@ namespace linuxdeploy {
|
||||
// deploy arbitrary file
|
||||
boost::filesystem::path deployFile(const boost::filesystem::path& from, const boost::filesystem::path& to);
|
||||
|
||||
// copy arbitrary file (immediately)
|
||||
bool copyFile(const boost::filesystem::path& from, const boost::filesystem::path& to, bool overwrite = false) const;
|
||||
|
||||
// create an <AppDir> relative symlink to <target> at <symlink>.
|
||||
bool createRelativeSymlink(const boost::filesystem::path& target, const boost::filesystem::path& symlink) const;
|
||||
|
||||
|
||||
@ -824,6 +824,10 @@ namespace linuxdeploy {
|
||||
return d->deployFile(from, to, true);
|
||||
}
|
||||
|
||||
bool AppDir::copyFile(const bf::path& from, const bf::path& to, bool overwrite) const {
|
||||
return d->copyFile(from, to, overwrite);
|
||||
}
|
||||
|
||||
bool AppDir::createRelativeSymlink(const bf::path& target, const bf::path& symlink) const {
|
||||
return d->symlinkFile(target, symlink, true);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user