ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
League\Flysystem\Directory Class Reference
+ Inheritance diagram for League\Flysystem\Directory:
+ Collaboration diagram for League\Flysystem\Directory:

Public Member Functions

 delete ()
 Delete the directory. More...
 
 getContents ($recursive=false)
 List the directory contents. More...
 
- Public Member Functions inherited from League\Flysystem\Handler
 __construct (FilesystemInterface $filesystem=null, $path=null)
 Constructor. More...
 
 isDir ()
 Check whether the entree is a directory. More...
 
 isFile ()
 Check whether the entree is a file. More...
 
 getType ()
 Retrieve the entree type (file|dir). More...
 
 setFilesystem (FilesystemInterface $filesystem)
 Set the Filesystem object. More...
 
 getFilesystem ()
 Retrieve the Filesystem object. More...
 
 setPath ($path)
 Set the entree path. More...
 
 getPath ()
 Retrieve the entree path. More...
 
 __call ($method, array $arguments)
 Plugins pass-through. More...
 

Additional Inherited Members

- Protected Attributes inherited from League\Flysystem\Handler
 $path
 
 $filesystem
 

Detailed Description

Definition at line 5 of file Directory.php.

Member Function Documentation

◆ delete()

League\Flysystem\Directory::delete ( )

Delete the directory.

Returns
bool

Definition at line 12 of file Directory.php.

13  {
14  return $this->filesystem->deleteDir($this->path);
15  }

◆ getContents()

League\Flysystem\Directory::getContents (   $recursive = false)

List the directory contents.

Parameters
bool$recursive
Returns
array|bool directory contents or false

Definition at line 24 of file Directory.php.

25  {
26  return $this->filesystem->listContents($this->path, $recursive);
27  }

The documentation for this class was generated from the following file: