diff --git a/parse_test.go b/parse_test.go index ab44c38..5211397 100644 --- a/parse_test.go +++ b/parse_test.go @@ -56,6 +56,10 @@ var listTests = []line{ {"drwxr-xr-x 3 110 1002 3 Dec 02 2009 spaces dir name", "spaces dir name", 0, EntryTypeFolder, time.Date(2009, time.December, 2, 0, 0, 0, 0, time.UTC)}, {"-rwxr-xr-x 3 110 1002 1234567 Dec 02 2009 file name", "file name", 1234567, EntryTypeFile, time.Date(2009, time.December, 2, 0, 0, 0, 0, time.UTC)}, {"-rwxr-xr-x 3 110 1002 1234567 Dec 02 2009 foo bar ", " foo bar ", 1234567, EntryTypeFile, time.Date(2009, time.December, 2, 0, 0, 0, 0, time.UTC)}, + + // UNIX ls -l style 8 tokens + {"drwxr-xr-x 3 vuser 4096 May 12 2011 web site", "web site", 0, EntryTypeFolder, time.Date(2011, time.May, 12, 0, 0, 0, 0, time.UTC)}, + {"-rw-r--r-- 1 vuser 70962 Apr 11 2007 C_080601.jpg", "C_080601.jpg", 70962, EntryTypeFile, time.Date(2007, time.April, 11, 0, 0, 0, 0, time.UTC)}, } // Not supported, we expect a specific error message