touch function
Updates the last modified time stamp of a file.
touch('fred.txt');
touch('fred.txt, create: true');
If create
is true and the file doesn't exist
it will be created.
If create
is false and the file doesn't exist
a TouchException
will be thrown.
create
is false by default.
As a convenience the touch function returns the path
variable
that was passed in.
Implementation
String touch(String path, {bool create = false}) =>
// ignore: discarded_futures
waitForEx(core.touch(path, create: create));