mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
fix parsing of dir output
This commit is contained in:
parent
1ac3d22b08
commit
9e2dab941c
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ class Share {
|
||||||
|
|
||||||
//last line is used space
|
//last line is used space
|
||||||
array_pop($output);
|
array_pop($output);
|
||||||
$regex = '/^\s*(.*?)\s\s\s\s+(?:([DHARS]*)\s+)?([0-9]+)\s+(.*)$/';
|
$regex = '/^\s*(.*?)\s\s\s\s+(?:([NDHARS]*)\s+)?([0-9]+)\s+(.*)$/';
|
||||||
//2 spaces, filename, optional type, size, date
|
//2 spaces, filename, optional type, size, date
|
||||||
$content = array();
|
$content = array();
|
||||||
foreach ($output as $line) {
|
foreach ($output as $line) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue