WP_Filesystem_ftpsockets::mtime( string $file ): int|false

In this article

Gets the file modification time.

Parameters

$filestringrequired
Path to file.

Return

int|false Unix timestamp representing modification time, false on failure.

Source

public function mtime( $file ) {
	$modified_time = $this->ftp->mdtm( $file );
	if ( false === $modified_time ) {
		return false;
	}
	return (int) $modified_time;
}

Changelog

VersionDescription
2.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.