LS(FTPD) LS(FTPD) NAME ls - list contents of the directory SYNOPSIS usage: ls [-1ACFGLPRXYZacdfgilnpqrstux] [file ...] LS-program for FTP-server, and related support functions. Some unusual options are for generating internal databases. -1 single column -d nodescend into dirs -A list '.'-files also -f show file as directory -C column format -g group -F FileType suffixes -i inode -G Gobbelygoo hex format -l long format of stat() data -n names in NUMERIC format -L ignore symlink -p filetype suffixes -P print full Path -q '?' on unprintable chars -R recursive mode -r reverse sort -X regenerate cache data -s size display -Y printallfiles() output -t sort by time -Z don't show hidden files -u by accesstime -a Show '.' files -x column output -c statustime AVAILABILITY Multiple features to support local FTP server in whatever it needs. This is "somewhat" hacked version of BSD reno ls program. Its freely available in source form (read BSD statements in any of source files.) DESCRIPTION FTP-server executes for NLST this as: /bin/ls -P and for LIST w/o the -P -option. Special directory-cache is used whenever this ls detects itself running under the FTP: Either -Z option, or FTPD_LS environment variable is present. Directory-cache regeneration is forced on with option -X Gobbelygoo hex-format output: 736.D82B.41ED.1.2A9D.65.FFFFD306.400.25AE0526.2000.2 Foobar.Readme Key for it is: dev.inode.mode.nlink.uid.gid.rdev.size.mtime.blksize.blocks name All fields, except last, are HEX. SPECIAL FILES .FTP_LS_DATA Cached directory contents. .ignored.names Contains names of files to be exluded from directory listing. ( sort(1) ordered! ) .recursion.ignored.names An .ignored.names, which has effect only with -R (and -Z of course!) ( sort(1) ordered! ) .links.as.reals Turns named symlinks as if they were real files/directories (as with -L option) If this file is 0-size, ALL symlinks are treated the same. ( sort(1) ordered! ) ENVIRONMENT VARIABLES FTPD_LS -- existance tells that this is run under the FTP server FTPD_DEBUG -- existance turns on debug output routines Usage transitory, results unpredictable AUTHORS BSD reno (tahoe?) ls, and HEAVY hacking by Matti Aarnio over the years. BUGS Should be reported to SEE ALSO ls-regen -program (into your favourite local binary storage) for easy running of directory-cache regeneration as root...