diff options
author | Andoni Morales Alastruey <ylatuya@gmail.com> | 2013-01-17 18:38:20 +0100 |
---|---|---|
committer | Andoni Morales Alastruey <ylatuya@gmail.com> | 2013-01-17 18:38:20 +0100 |
commit | 5982670d4933ae3946f410223b80f5484c41b1e0 (patch) | |
tree | 08dfc8734bcc7f94735676e79f17e49179ba1c6f | |
parent | 0b496ec447426a0b5944bf3df8d01c338cd70356 (diff) |
shell: fix touch command with files that don't exists
-rw-r--r-- | cerbero/utils/shell.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cerbero/utils/shell.py b/cerbero/utils/shell.py index 662c77b..34b5cf8 100644 --- a/cerbero/utils/shell.py +++ b/cerbero/utils/shell.py @@ -295,7 +295,7 @@ def copy_dir(src, dest): def touch(path, create_if_not_exists=False, offset=0): if not os.path.exists(path): if create_if_not_exists: - open(path).close() + open(path, 'w').close() else: return t = time.time() + offset |