summaryrefslogtreecommitdiff
path: root/subplot/data.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-12-12 10:44:50 +0200
committerLars Wirzenius <liw@liw.fi>2020-12-12 11:58:12 +0200
commit146a5fe13cba442afca954733bafd854f4448928 (patch)
tree1ae24923cc950aedb77772f167045656c2f9249a /subplot/data.py
parent57b85f1d11c8972cd056a339c29e28ab3b91137c (diff)
downloadobnam2-146a5fe13cba442afca954733bafd854f4448928.tar.gz
feat: back up and restore symlinks
Diffstat (limited to 'subplot/data.py')
-rw-r--r--subplot/data.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/subplot/data.py b/subplot/data.py
index 09df6c5..ba3636c 100644
--- a/subplot/data.py
+++ b/subplot/data.py
@@ -17,6 +17,10 @@ def chmod_file(ctx, filename=None, mode=None):
os.chmod(filename, int(mode, 8))
+def create_symlink(ctx, linkname=None, target=None):
+ os.symlink(linkname, target)
+
+
def create_manifest_of_live(ctx, dirname=None, manifest=None):
_create_manifest_of_directory(ctx, dirname=dirname, manifest=manifest)