mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
update readme for FileInfo
This commit is contained in:
parent
1c11289d36
commit
248d308605
2 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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";
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue