|
3 | 3 | namespace React\Filesystem\Node; |
4 | 4 |
|
5 | 5 | use React\Filesystem\AdapterInterface; |
| 6 | +use React\Promise\PromiseInterface; |
6 | 7 |
|
7 | 8 | interface DirectoryInterface extends NodeInterface |
8 | 9 | { |
9 | 10 | /** |
10 | | - * @return \React\Promise\PromiseInterface |
| 11 | + * Create the directory, fails when directory already exists or when parent doesn't exist. |
| 12 | + * |
| 13 | + * @return PromiseInterface |
11 | 14 | */ |
12 | 15 | public function create($mode = AdapterInterface::CREATION_MODE); |
13 | 16 |
|
14 | 17 | /** |
15 | | - * @return \React\Promise\PromiseInterface |
| 18 | + * Create the directory, creating any parent that doesn't exist. |
| 19 | + * |
| 20 | + * @return PromiseInterface |
16 | 21 | */ |
17 | 22 | public function createRecursive($mode = AdapterInterface::CREATION_MODE); |
18 | 23 |
|
19 | 24 | /** |
20 | | - * @return \React\Promise\PromiseInterface |
| 25 | + * Remove the directory, fails when it has contents. |
| 26 | + * |
| 27 | + * @return PromiseInterface |
21 | 28 | */ |
22 | 29 | public function remove(); |
23 | 30 |
|
24 | 31 | /** |
25 | | - * @return \React\Promise\PromiseInterface |
| 32 | + * List contents of the directory. |
| 33 | + * |
| 34 | + * @return PromiseInterface |
26 | 35 | */ |
27 | 36 | public function ls(); |
28 | 37 |
|
29 | 38 | /** |
| 39 | + * List contents of the directory and any child directories recursively. |
| 40 | + * |
| 41 | + * @return PromiseInterface |
| 42 | + */ |
| 43 | + public function lsRecursive(); |
| 44 | + |
| 45 | + /** |
| 46 | + * Change mode recursively. |
| 47 | + * |
30 | 48 | * @param int $mode |
31 | | - * @return \React\Promise\PromiseInterface |
| 49 | + * @return PromiseInterface |
32 | 50 | */ |
33 | 51 | public function chmodRecursive($mode); |
34 | 52 |
|
35 | 53 | /** |
36 | | - * @return \React\Promise\PromiseInterface |
| 54 | + * Change owner recursively. |
| 55 | + * |
| 56 | + * @return PromiseInterface |
37 | 57 | */ |
38 | 58 | public function chownRecursive(); |
39 | 59 |
|
40 | 60 | /** |
41 | | - * @return \React\Promise\PromiseInterface |
| 61 | + * Remove the directory and all its contents recursively. |
| 62 | + * |
| 63 | + * @return PromiseInterface |
42 | 64 | */ |
43 | 65 | public function removeRecursive(); |
44 | 66 |
|
45 | | - /** |
46 | | - * @return \React\Promise\PromiseInterface |
47 | | - */ |
48 | | - public function lsRecursive(); |
49 | | - |
50 | 67 | /** |
51 | 68 | * @param DirectoryInterface $directory |
52 | | - * @return \React\Promise\PromiseInterface |
| 69 | + * @return PromiseInterface |
53 | 70 | */ |
54 | 71 | //public function rsync(DirectoryInterface $directory); |
55 | 72 | } |
0 commit comments