WP_Filesystem_FTPext::getchmod() – Gets the permissions of the specified file or filepath in their octal format.

You appear to be a bot. Output may be restricted

Description

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

Usage

$string = WP_Filesystem_FTPext::getchmod( $file );

Parameters

$file
( string ) required – Path to the file.

Returns

string Mode of the file (the last 3 digits).

Source

File name: wordpress/wp-admin/includes/class-wp-filesystem-ftpext.php
Lines:

1 to 5 of 5
  public function getchmod( $file ) {
    $dir = $this->WP_Filesystem_FTPext::dirlist( $file );

    return $dir[ $file ]['permsn'];
  }
 

 View on GitHub View on Trac