WP_Filesystem_ftpsockets::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_ftpsockets::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-ftpsockets.php
Lines:

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

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

 View on GitHub View on Trac