touch()

audeer.touch(path, *paths)[source]

Create an empty file.

If the file exists already it’s access and modification times are updated.

Parameters:
Return type:

str

Returns:

expanded path to file

Examples

>>> path = audeer.touch("file.txt")
>>> os.path.basename(path)
'file.txt'