ChmodInterface.php

Same filename in other branches
  1. 8.9.x core/lib/Drupal/Core/FileTransfer/ChmodInterface.php
  2. 10 core/lib/Drupal/Core/FileTransfer/ChmodInterface.php
  3. 11.x core/lib/Drupal/Core/FileTransfer/ChmodInterface.php

Namespace

Drupal\Core\FileTransfer

File

core/lib/Drupal/Core/FileTransfer/ChmodInterface.php

View source
<?php

namespace Drupal\Core\FileTransfer;


/**
 * Defines an interface to chmod files.
 */
interface ChmodInterface {
    
    /**
     * Changes the permissions of the file / directory specified in $path.
     *
     * @param string $path
     *   Path to change permissions of.
     * @param int $mode
     *   The new file permission mode to be passed to chmod().
     * @param bool $recursive
     *   Pass TRUE to recursively chmod the entire directory specified in $path.
     *
     * @see http://php.net/chmod
     */
    public function chmodJailed($path, $mode, $recursive);

}

Interfaces

Title Deprecated Summary
ChmodInterface Defines an interface to chmod files.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.