move io.files.listing to tools.files and update usages

db4
Doug Coleman 2008-12-02 21:49:59 -06:00
parent 2b4e2776f1
commit 7527a3d62d
13 changed files with 17 additions and 18 deletions

View File

@ -269,7 +269,7 @@ $nl
{ $heading "Example: ls" }
"Here is an example implementing a simplified version of the Unix " { $snippet "ls" } " command in Factor:"
{ $code
<" USING: command-line namespaces io io.files io.files.listing
<" USING: command-line namespaces io io.files tools.files
sequences kernel ;
command-line get [

View File

@ -1,7 +1,7 @@
! Copyright (C) 2008 Doug Coleman.
! See http://factorcode.org/license.txt for BSD license.
USING: help.markup help.syntax io.streams.string strings ;
IN: io.files.listing
IN: tools.files
HELP: directory.
{ $values
@ -9,9 +9,9 @@ HELP: directory.
}
{ $description "Prints information about all files in a directory to the output stream in a cross-platform way similar to the Unix " { $snippet "ls" } " command." } ;
ARTICLE: "io.files.listing" "Listing files"
"The " { $vocab-link "io.files.listing" } " vocabulary implements directory file listing in a cross-platform way." $nl
ARTICLE: "tools.files" "Files tools"
"The " { $vocab-link "tools.files" } " vocabulary implements directory files and file-systems listing in a cross-platform way." $nl
"Listing a directory:"
{ $subsection directory. } ;
ABOUT: "io.files.listing"
ABOUT: "tools.files"

View File

@ -1,7 +1,7 @@
! Copyright (C) 2008 Your name.
! See http://factorcode.org/license.txt for BSD license.
USING: tools.test io.files.listing strings kernel ;
IN: io.files.listing.tests
USING: tools.test tools.files strings kernel ;
IN: tools.files.tests
\ directory. must-infer

View File

@ -2,8 +2,7 @@
! See http://factorcode.org/license.txt for BSD license.
USING: accessors arrays combinators io io.files kernel
math.parser sequences system vocabs.loader calendar ;
IN: io.files.listing
IN: tools.files
<PRIVATE
@ -34,6 +33,6 @@ PRIVATE>
[ (directory.) ] with-directory-files [ print ] each ;
{
{ [ os unix? ] [ "io.files.listing.unix" ] }
{ [ os windows? ] [ "io.files.listing.windows" ] }
{ [ os unix? ] [ "tools.files.unix" ] }
{ [ os windows? ] [ "tools.files.windows" ] }
} cond require

View File

@ -1,10 +1,10 @@
! Copyright (C) 2008 Doug Coleman.
! See http://factorcode.org/license.txt for BSD license.
USING: accessors combinators kernel system unicode.case
io.unix.files io.files.listing generalizations strings
io.unix.files tools.files generalizations strings
arrays sequences io.files math.parser unix.groups unix.users
io.files.listing.private unix.stat math ;
IN: io.files.listing.unix
tools.files.private unix.stat math ;
IN: tools.files.unix
<PRIVATE

View File

@ -1,9 +1,9 @@
! Copyright (C) 2008 Doug Coleman.
! See http://factorcode.org/license.txt for BSD license.
USING: accessors calendar.format combinators io.files
kernel math.parser sequences splitting system io.files.listing
generalizations io.files.listing.private ;
IN: io.files.listing.windows
kernel math.parser sequences splitting system tools.files
generalizations tools.files.private ;
IN: tools.files.windows
<PRIVATE

View File

@ -7,7 +7,7 @@ namespaces make sequences ftp io.unix.launcher.parser
unicode.case splitting assocs classes io.servers.connection
destructors calendar io.timeouts io.streams.duplex threads
continuations math concurrency.promises byte-arrays
io.backend sequences.lib tools.hexdump io.files.listing
io.backend sequences.lib tools.hexdump tools.files
io.streams.string ;
IN: ftp.server