mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
1dca365393
Signed-off-by: Mrunal Patel <mrunalp@gmail.com> Conflicts: libcontainer/integration/exec_test.go
16 lines
291 B
Python
Executable File
16 lines
291 B
Python
Executable File
#!/usr/bin/env python
|
|
import sys
|
|
import json
|
|
import os
|
|
|
|
def touch(filepath):
|
|
if os.path.exists(filepath):
|
|
os.utime(filepath, None)
|
|
else:
|
|
open(filepath, 'a').close()
|
|
|
|
if __name__ == "__main__":
|
|
rootfs = json.load(sys.stdin)["config"]["rootfs"]
|
|
touch(os.path.join(rootfs, "tmp.txt"))
|
|
|