WP_Filesystem_ftpsockets::touch()publicWP 2.5.0

Sets the access and modification times of a file.

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

Method of the class: WP_Filesystem_ftpsockets{}

No Hooks.

Return

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

Usage

$WP_Filesystem_ftpsockets = new WP_Filesystem_ftpsockets();
$WP_Filesystem_ftpsockets->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.

WP_Filesystem_ftpsockets::touch() code WP 6.6.2

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