Symisc Systems

Libcox Command Reference


Star Follow @symisc

Command Syntax

touch filename [time] [atime]


Alias

None


Description

Sets access and modification time of the given file. Note that under Windows Systems, if the file does not exists, it will not be created.


Parameters

filename

The name of the file being touched.

time

Optional Parameter: The touch time. If time is not supplied, the current system time is used..

atime

Optional Parameter: If present, the access time of the given filename is set to the value of atime. Otherwise, it is set to the value passed to the time parameter. If neither are present, the current system time is used.


Return Value

Boolean: TRUE(1) on success, FALSE(0) otherwise (i.e. Not implemented by the underlying OS). Use libcox_value_to_bool() or libcox_value_to_int() to extract the processing result.