PclZipUtilRename() –

You appear to be a bot. Output may be restricted

Description

Usage

PclZipUtilRename( $p_src, $p_dest );

Parameters

$p_src
( mixed ) required
$p_dest
( mixed ) required

Returns

void

Source

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

1 to 19 of 19
  function PclZipUtilRename($p_src, $p_dest)
  {
    $v_result = 1;

    // ----- Try to rename the files
    if (!@rename($p_src, $p_dest)) {

      // ----- Try to copy & unlink the src
      if (!@copy($p_src, $p_dest)) {
        $v_result = 0;
      }
      else if (!@unlink($p_src)) {
        $v_result = 0;
      }
    }

    // ----- Return
    return $v_result;
  }
 

 View on GitHub View on Trac