Function __global->_ftp_chmod

Definitions

sources/abstract_file_manager.php

  • Set permissions on a newly-created path via FTP, assuming an FTP filesystem cache issue if 'No such file or directory' error is thrown.It is implied that the directory/file was created on the same filename prior to calling this and it returned success.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$ftp mixed No No required parameter N/A N/A The FTP connection
$permissions integer No No required parameter N/A N/A The permissions to set
$ftp_path PATH No No required parameter N/A N/A The file path

Returns

  • The new file permissions on success (false: error)
  • Type: ~integer
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Set permissions on a newly-created path via FTP, assuming an FTP filesystem cache issue if 'No such file or directory' error is thrown.It is implied that the directory/file was created on the same filename prior to calling this and it returned success.
 *
 * @param  mixed $ftp The FTP connection
 * @param  integer $permissions The permissions to set
 * @param  PATH $ftp_path The file path
 * @return ~integer The new file permissions on success (false: error)
 */

function _ftp_chmod($ftp, int $permissions, string $ftp_path)