update readme for FileInfo

This commit is contained in:
Robin Appelman 2014-07-31 16:06:35 +02:00
commit 248d308605
2 changed files with 4 additions and 3 deletions

View file

@ -29,6 +29,7 @@ before_install:
path = /home/test path = /home/test
guest ok = yes guest ok = yes
writeable = yes writeable = yes
ea support = yes
inherit permissions = yes" | sudo tee -a /etc/samba/smb.conf inherit permissions = yes" | sudo tee -a /etc/samba/smb.conf
- sudo service smbd restart - sudo service smbd restart
- testparm -s - testparm -s

View file

@ -73,9 +73,9 @@ $server = new Server('localhost', 'test', 'test');
$share = $server->getShare('test'); $share = $server->getShare('test');
$content = $share->dir('test'); $content = $share->dir('test');
foreach ($content as $name => $info) { foreach ($content as $info) {
echo $name . "\n"; echo $name->getName() . "\n";
echo "\tsize :" . $info['size'] . "\n"; echo "\tsize :" . $info->getSize() . "\n";
} }
``` ```