Getting started
API Documentation
Development
Create an empty file.
If the file exists already it’s access and modification times are updated.
path (Union[str, bytes]) – path to file
Union
str
bytes
*paths (Sequence[Union[str, bytes]]) – additional arguments to be joined with path by os.path.join()
Sequence
path
os.path.join()
expanded path to file
Examples
>>> path = touch("file.txt") >>> os.path.basename(path) 'file.txt'