mirror of https://github.com/flaggo/pydu.git
Add doc string for touch
This commit is contained in:
parent
28abb26de8
commit
1e731d58cc
|
@ -118,6 +118,9 @@ def copy(src, dst, ignore_errors=False, follow_symlinks=True):
|
|||
|
||||
|
||||
def touch(path):
|
||||
"""
|
||||
open a file as write,and then close it.
|
||||
"""
|
||||
with open(path, 'w'):
|
||||
pass
|
||||
|
||||
|
|
Loading…
Reference in New Issue