public function Local::__construct in Flysystem 8
Same name and namespace in other branches
- 7 src/Flysystem/Local.php \Drupal\flysystem\Flysystem\Local::__construct()
- 3.x src/Flysystem/Local.php \Drupal\flysystem\Flysystem\Local::__construct()
- 2.0.x src/Flysystem/Local.php \Drupal\flysystem\Flysystem\Local::__construct()
- 3.0.x src/Flysystem/Local.php \Drupal\flysystem\Flysystem\Local::__construct()
Constructs a Local object.
Parameters
string $root: The of the adapter's filesystem.
bool $is_public: (optional) Whether this is a public file system. Defaults to false.
int $directory_permission: (optional) The permissions to create directories with.
File
- src/
Flysystem/ Local.php, line 65
Class
- Local
- Drupal plugin for the "Local" Flysystem adapter.
Namespace
Drupal\flysystem\FlysystemCode
public function __construct($root, $is_public = FALSE, $directory_permission = FileSystem::CHMOD_DIRECTORY) {
$this->isPublic = $is_public;
$this->root = $root;
$this->directoryPerm = $directory_permission;
$this->rootExists = $this
->ensureDirectory();
}