File: NOTES.dirlist-parsing

package info (click to toggle)
proftpd-mod-proxy 0.9.2-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,972 kB
  • sloc: perl: 43,469; ansic: 43,171; sh: 3,479; makefile: 247
file content (21 lines) | stat: -rw-r--r-- 766 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

At some point, especially for protocol conversions, mod_proxy may need to
parse the directory listing from the backend server to give to the frontend
client.  Thus we'll need some dirlist-parsing code.

Here's a fun one, from the lftp changes:

  fixed MLSD parsing for semicolons in file names. 

See:

  http://lftp.yar.ru/news.html

Maybe lftp has MLSD parsing code to reuse?

It does indeed; see lftp-N.N.N/src/FtpListInfo.{h,cc}.  Purportedly parses
Unix, MLSD, OS/2, NT, AS400, and EPLF.  Could write proxy module that does
this.  Note that FtpListInfo iterates through list of parsers to find the one
which handles the current format; do same, but remember the parser which
worked, per session/connection, so that such iteration isn't necessary
per-dirlist.