Create empty file using python
<p>I'd like to create a file with path <code>x</code> using python. I've been using <code>os.system(y)</code> where <code>y = 'touch %s' % (x)</code>. I've looked for a non-directory version of <code>os.mkdir</code>, but I haven't been able to find anything. Is there a tool like this to create a file without opening it, or using system or popen/subprocess?</p>
