# wpide/3.5.9/vendor/league/flysystem/src/Directory.php

WPIDE – File Manager &amp; Code Editor, version 3.5.9. 32 lines.

- Page: https://pluginprobe.com/plugins/wpide/3.5.9/code/vendor/league/flysystem/src/Directory.php
- Raw: https://pluginprobe.com/plugins/wpide/3.5.9/raw/vendor/league/flysystem/src/Directory.php
- Modified: 2022-07-30T20:33:10+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wpide/3.5.9/code/vendor/league/flysystem/src/Directory.php#L10-L20`.

```php
<?php

namespace League\Flysystem;

/**
 * @deprecated
 */
class Directory extends Handler
{
    /**
     * Delete the directory.
     *
     * @return bool
     */
    public function delete()
    {
        return $this->filesystem->deleteDir($this->path);
    }

    /**
     * List the directory contents.
     *
     * @param bool $recursive
     *
     * @return array|bool directory contents or false
     */
    public function getContents($recursive = false)
    {
        return $this->filesystem->listContents($this->path, $recursive);
    }
}

```
