We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 81b8647 + b168d6d commit 6e77b6bCopy full SHA for 6e77b6b
Services/DirectoryService.php
@@ -12,12 +12,14 @@
12
class DirectoryService extends AbstractService
13
{
14
/**
15
- * @param string $namespace
+ * @param string $namespace
16
+ * @param boolean $recursive
17
* @return mixed
18
*/
- public function ls(string $namespace)
19
+ public function ls(string $namespace, bool $recursive = false)
20
- $uri = $this->apiUrl.'/'.static::API_V2_FS_COMMAND.'/'.$namespace.'/?children=df';
21
+ $recursive = $recursive ? 'true' : 'false';
22
+ $uri = $this->apiUrl.'/'.static::API_V2_FS_COMMAND.'/'.$namespace.'/?children=dfz&recursive='.$recursive;
23
24
return $this->exec($uri);
25
}
0 commit comments