WordPress at Your Fingertips
function is not described

WP_Filesystem_FTPext::touch() public WP 2.5.0

Sets the access and modification times of a file.

Note: If $file doesn't exist, it will be created.

{} It's a method of the class: WP_Filesystem_FTPext{}

No Hooks.

Return

true|false. True on success, false on failure.

Usage

$WP_Filesystem_FTPext = new WP_Filesystem_FTPext();
$WP_Filesystem_FTPext->touch( $file, $time, $atime );
$file(string) (required)
Path to file.
$time(int)
Modified time to set for file.
$atime(int)
Access time to set for file.

Changelog

Since 2.5.0 Introduced.

Code of WP_Filesystem_FTPext::touch() WP 5.8.2

public function touch( $file, $time = 0, $atime = 0 ) {
	return false;
}