WP_Filesystem_Base::getchmod( string $file )

Gets the permissions of the specified file or filepath in their octal format


Parameters

$file

(string) (Required)


Return

(string) the last 3 characters of the octal number


Source

File: wp-admin/includes/class-wp-filesystem-base.php

	public function getchmod( $file ) {
		return '777';
	}


Changelog

Changelog
Version Description
WP-2.5.0 Introduced.