[ Version ( since = "0.3" ) ]
public bool touch (string path) throws Error
update file timestamps or create a new file
Touch acts like the touch(1) command. It can be used to update the timestamps on a file, or, if the file does not exist, to create a new zero-length file.
This command only works on regular files, and will fail on other file types such as directories, symbolic links, block special etc.
this |
A GuestfsSession object |
true on success, false on error |