view core/lib/Drupal/Core/FileTransfer/ChmodInterface.php @ 1:1a348b17ec81

Logo and header background
author Chris Cannam
date Thu, 30 Nov 2017 14:56:35 +0000
parents 4c8ae668cc8c
children
line wrap: on
line 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);

}