WP_Filesystem_SSH2::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 ) {
	return filemtime( $this->sftp_path( $file ) );
}

Changelog

VersionDescription
2.7.0Introduced.

User Contributed Notes

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