We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e2e6269 + 8a82b47 commit 3877888Copy full SHA for 3877888
examples/directory.php
@@ -8,6 +8,7 @@
8
9
$url = 'https://svn.apache.org/viewvc/';
10
$path = isset($argv[1]) ? $argv[1] : '/';
11
+$revision = isset($argv[2]) ? $argv[2] : null;
12
13
$loop = LoopFactory::create();
14
@@ -27,6 +28,10 @@
27
28
29
$client = new Client($url, $browser);
30
-$client->fetchDirectory($path)->then('var_dump', 'var_dump');
31
+if (substr($path, -1) === '/') {
32
+ $client->fetchDirectory($path, $revision)->then('var_dump', 'printf');
33
+} else {
34
+ $client->fetchFile($path, $revision)->then('printf', 'printf');
35
+}
36
37
$loop->run();
0 commit comments