2008-11-14 01:25:00 -05:00
|
|
|
! Copyright (C) 2008 Doug Coleman.
|
|
|
|
! See http://factorcode.org/license.txt for BSD license.
|
|
|
|
USING: accessors calendar.format combinators io.files
|
2008-12-02 22:49:59 -05:00
|
|
|
kernel math.parser sequences splitting system tools.files
|
2008-12-16 03:51:57 -05:00
|
|
|
generalizations tools.files.private io.files.info ;
|
2008-12-02 22:49:59 -05:00
|
|
|
IN: tools.files.windows
|
2008-11-14 01:25:00 -05:00
|
|
|
|
2008-11-14 01:51:14 -05:00
|
|
|
<PRIVATE
|
|
|
|
|
2009-01-13 16:48:59 -05:00
|
|
|
M: windows file-spec>string ( file-listing spec -- string )
|
|
|
|
{
|
|
|
|
{ listing-datetime [ modified>> timestamp>ymdhms ] }
|
|
|
|
[ call-next-method ]
|
|
|
|
} case ;
|
2008-11-14 01:25:00 -05:00
|
|
|
|
|
|
|
M: windows (directory.) ( entries -- lines )
|
2009-01-13 16:48:59 -05:00
|
|
|
<listing-tool>
|
|
|
|
{ file-size file-datetime file-name } >>specs
|
|
|
|
{ { directory-entry>> name>> <=> } } >>sort
|
|
|
|
list-files ;
|
2008-11-14 01:51:14 -05:00
|
|
|
|
|
|
|
PRIVATE>
|