Commit bdc1f4e
committed
fix(files_external): skip BSD ftpd "total N" listing headers
BSD ftpd prepends directory listings with a `total N` line. The raw
LIST parser treated that as a file entry and threw, so external FTP
storage against FreeBSD could not be browsed.
Skip empty lines and `total` headers the same way flysystem does,
while still parsing `.` / `..` as cdir/pdir.
Fixes: #37045
Signed-off-by: Xusnitdinov Azizbek <252487890+xusnitdinov@users.noreply.github.com>1 parent be98f77 commit bdc1f4e
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
124 | 130 | | |
125 | 131 | | |
126 | | - | |
| 132 | + | |
127 | 133 | | |
128 | 134 | | |
129 | 135 | | |
| |||
0 commit comments