简单说 修改时间在6个月之内的
-rw-r--r-- 1 owner group 213 Aug 26 16:31 README
6个月之上的
-rw-r--r-- 1 owner group 1383 Apr 10 1997 ip.c
/bin/ls format
/bin/ls format is a series of lines terminated by 015012. Servers using /bin/ls format need to be prepared to generate lines in the following form:
-rw-r--r-- 1 owner group 213 Aug 26 16:31 README
The line contains
- for a regular file or d for a directory;
- literal string rw-r--r-- 1 owner group for a regular file, or rwxr-xr-x 1 owner group for a directory;
the file size in decimal right-justified in a 13-byte field;
a three-letter month name, first letter capitalized;
a day number right-justified in a 3-byte field;
a space and a 2-digit hour number;
a colon and a 2-digit minute number;
a space and the abbreviated pathname of the file.
File names containing spaces, stars, hyphens, or slashes will be misinterpreted by some clients, and must be omitted from the list.
The month name, day number, hour number, and minute number express the file's modification time in the server's local time zone. This creates several obstacles to reliable mirroring.
The format shown above applies only to files modified in the last six months. Other files show the year instead of the hour number and minute number:
-rw-r--r-- 1 owner group 1383 Apr 10 1997 ip.c
Some servers (e.g., NetWare) set the cutoff at one year, making it impossible for the client to reliably distinguish dates near the cutoff from recent dates.
Clients attempting to parse /bin/ls format must be prepared for a much wider range of line formats. All the formats I've seen are documented in http://cr.yp.to/ftpparse.html.
赞助一杯咖啡☕️
本文由 widdy 创作,采用 知识共享署名4.0 国际许可协议进行许可
本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名
最后编辑时间为: Dec 2, 2020 at 04:17 pm