summaryrefslogtreecommitdiff
path: root/deps/gyp/test/restat/src/create_intermediate.py
blob: a4d7450371d96f9d7ac1a1cb09576668b1ae2cf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env python

# Copyright (c) 2012 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import os
import sys

"""
Create argv[1] iff it doesn't already exist.
"""

outfile = sys.argv[1]
if os.path.exists(outfile):
  sys.exit()
open(outfile, "wb").close()