diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-02-19 20:19:15 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-02-19 20:19:15 +0200 |
commit | ff17410cbee1492a5ca87869f76a2dafb7f90430 (patch) | |
tree | 0266517f6efc8027c5c58c7634de5e7176ee1a64 /subplot/data.py | |
parent | 248e5ab7518746c0ac43747040290e9b5d138028 (diff) | |
download | obnam2-ff17410cbee1492a5ca87869f76a2dafb7f90430.tar.gz |
feat: backup and restore named pipes (FIFOs)
Diffstat (limited to 'subplot/data.py')
-rw-r--r-- | subplot/data.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/subplot/data.py b/subplot/data.py index 3c369d1..0c1a4a5 100644 --- a/subplot/data.py +++ b/subplot/data.py @@ -24,6 +24,10 @@ def create_unix_socket(ctx, filename=None): fd.bind(filename) +def create_fifo(ctx, filename=None): + os.mkfifo(filename) + + def create_nonutf8_filename(ctx, dirname=None): filename = "\x88" os.mkdir(dirname) |