目前位置: VCer资源中心 >>> VCer代码 >>> 网络与通信

[本帖已阅读1992次 分值90 回复0次] 张贴资源 发回信箱 控制面板

FTP 服务器返回信息类型归纳

提供者:xler 张贴时间:2004-03-30 11:46:43.0 出处:vcer.net 作者:不祥

FTP 服务器返回信息类型归纳(2004-03-30 11:46:43.0)


垫脚石


忙碌时知道休闲的幸福

休闲时却不知忙碌的幸福

 
级别: VCer排长
头衔: VCer创始人

经验: 1944
作品: 41
分会: 华北分会
注册: 2004-02-17 09:11:28.0
登录: 2007-11-30 22:27:01.0

兼容ftp服务器的话,必须对上面进行枚举,目前还没有别的好办法,希望大家添加!

               "-rw-r--r--   1 root     other        531 Jan 29 03:26 README",

                "dr-xr-xr-x   2 root     other        512 Apr  8  1994 etc",

                "dr-xr-xr-x   2 root                  512 Apr  8  1994 etc2",

                "lrwxrwxrwx   1 root     other          7 Jan 25 00:17 bin -> usr/bin",

           /* Some listings with uncommon date/time format: */

                "-rw-r--r--   1 root     other        531 09-26 2000 README2",

                "-rw-r--r--   1 root     other        531 09-26 13:45 README3",

                "-rw-r--r--   1 root     other        531 2005-06-07 21:22 README4",

           /* Also produced by Microsoft's FTP servers for Windows: */

                "----------   1 owner    group         1803128 Jul 10 10:18 ls-lR.Z",

                "d---------   1 owner    group               0 May  9 19:45 Softlib",

           /* Also WFTPD for MSDOS: */

                "-rwxrwxrwx   1 noone    nogroup      322 Aug 19  1996 message.ftp",

           /* Also NetWare: */

                "d [R----F--] supervisor            512       Jan 16 18:53    login",

                "- [R----F--] rhesus             214059       Oct 20 15:27    cx.exe",

          /* Also NetPresenz for the Mac: */

                "-------r--         326  1391972  1392298 Nov 22  1995 MegaPhone.sit",

                "drwxrwxr-x               folder        2 May 10  1996 network",

          /* Some other formats some windows servers send */

                "-rw-r--r--   1 root 531 Jan 29 03:26 README5",

                "-rw-r--r--   1 group domain user 531 Jan 29 03:26 README6",

          /* EPLF directory listings */

                "+i8388621.48594,m825718503,r,s280,\teplf test 1.file",

                "+i8388621.50690,m824255907,/,\teplf test 2.dir",

                "+i8388621.48598,m824253270,r,s612,\teplf test 3.file",

          /* MSDOS type listing used by IIS */

                "04-27-00  09:09PM       <DIR>          DOS dir 1",

                "04-14-00  03:47PM                  589 DOS file 1",

          /* Another type of MSDOS style listings */

                "2002-09-02  18:48       <DIR>          DOS dir 2",

                "2002-09-02  19:06                9,730 DOS file 2",

          /* Numerical Unix style format */

                "0100644   500  101   12345    123456789       filename",

          /* This one is used by SSH-2.0-VShell_2_1_2_143, this is the old VShell format */

                "206876  Apr 04, 2000 21:06 VShell (old)",

                "0  Dec 12, 2002 02:13 VShell (old) Dir/",

          /* This type of directory listings is sent by some newer versions of VShell

                 * both year and time in one line is uncommon.

                 */

                "-rwxr-xr-x    1 user group        9 Oct 08, 2002 09:47 VShell (new)",

          /* Next ones come from an OS/2 server. The server obviously isn't Y2K aware */

                "36611      A    04-23-103   10:57  OS2 test1.file",

                " 1123      A    07-14-99   12:37  OS2 test2.file",

                "    0 DIR       02-11-103   16:15  OS2 test1.dir",

                " 1123 DIR  A    10-05-100   23:38  OS2 test2.dir",

          /* Some servers send localized date formats, here the German one: */

                "dr-xr-xr-x   2 root     other      2235 26. Juli, 20:10 datetest1 (ger)",

                "-r-xr-xr-x   2 root     other      2235 2.   Okt.  2003 datetest2 (ger)",

                "-r-xr-xr-x   2 root     other      2235 1999/10/12 17:12 datetest3",

                "-r-xr-xr-x   2 root     other      2235 24-04-2003 17:12 datetest4",

          /* Here a Japanese one: */

                "-rw-r--r--   1 root       sys           8473  4\\x8c\\x8e 18\\x93\\xfa 2003\\x94\\x4e datatest1 (jap)",

          /* VMS style listings */

                "vms_dir_1.DIR;1  1 19-NOV-2001 21:41 [root,root] (RWE,RWE,RE,RE)",

          /* VMS multiline */

                "VMS_file_1;1\r\n170774/170775     24-APR-2003 08:16:15  [FTP_CLIENT,SCOT]      (RWED,RWED,RE,)",

                "VMS_file_2;1\r\n10        2-JUL-2003 10:30:08.59  [FTP_CLIENT,SCOT]      (RWED,RWED,RE,)",

          /* IBM AS/400 style listing */

                "QSYS            77824 02/23/00 15:09:55 *DIR IBM Dir1/",

          /* aligned directory listing with too long size */

                "-r-xr-xr-x longowner longgroup123456 Feb 12 17:20 long size test1",

          /* short directory listing with month name */

                "-r-xr-xr-x 2 owner group 4512 01-jun-99 shortdate with monthname",

          /* the following format is sent by the Connect:Enterprise server by Sterling Commerce */

                "-C--E-----FTP B BCC3I1       7670  1294495 Jan 13 07:42 ConEnt file",

注:转载文章需注明来源:VCer.net 文章地址:http://vcer.net/1021.html

  如果你觉得VCer.net不错,而且你愿意为VCer.net捐赠一元钱,那么点击后面的捐赠按钮吧:) vcer.net捐赠

我们不要20020822_1[10,496字节]

 

[回复该贴] [加入个人书签]
[投票结果]

A: 评分 10 100% (1 票)
B: 评分 5 0% (0 票)
C: 评分 0 0% (0 票)
D: 评分 -5 0% (0 票)
E: 评分 -10 0% (0 票)