Advertisement
eeperry

Function that acts like touch command

Oct 5th, 2013
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.08 KB | None | 0 0
  1. import os
  2. def touch(path):
  3.     with open(path, 'a'):
  4.         os.utime(path, None)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement