Moving io.trash to io.files.trash.
parent
6c4e8ae969
commit
94812c1f49
|
@ -2,9 +2,9 @@
|
|||
! See http://factorcode.org/license.txt for BSD license
|
||||
|
||||
USING: alien.c-types alien.strings alien.syntax classes.struct
|
||||
core-foundation io.encodings.utf8 io.trash kernel system ;
|
||||
core-foundation io.encodings.utf8 io.files.trash kernel system ;
|
||||
|
||||
IN: io.trash.macosx
|
||||
IN: io.files.trash.macosx
|
||||
|
||||
<PRIVATE
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
! Copyright (C) 2010 John Benediktsson
|
||||
! See http://factorcode.org/license.txt for BSD license
|
||||
|
||||
USING: help.markup help.syntax io.trash ;
|
||||
USING: help.markup help.syntax io.files.trash ;
|
||||
|
||||
IN: io.trash
|
||||
IN: io.files.trash
|
||||
|
||||
HELP: send-to-trash
|
||||
{ $values { "path" "a file path" } }
|
|
@ -3,13 +3,13 @@
|
|||
|
||||
USING: combinators system vocabs.loader ;
|
||||
|
||||
IN: io.trash
|
||||
IN: io.files.trash
|
||||
|
||||
HOOK: send-to-trash os ( path -- )
|
||||
|
||||
{
|
||||
{ [ os macosx? ] [ "io.trash.macosx" ] }
|
||||
{ [ os unix? ] [ "io.trash.unix" ] }
|
||||
{ [ os winnt? ] [ "io.trash.windows" ] }
|
||||
{ [ os macosx? ] [ "io.files.trash.macosx" ] }
|
||||
{ [ os unix? ] [ "io.files.trash.unix" ] }
|
||||
{ [ os winnt? ] [ "io.files.trash.windows" ] }
|
||||
} cond require
|
||||
|
|
@ -3,11 +3,11 @@
|
|||
|
||||
USING: accessors calendar combinators.short-circuit environment
|
||||
formatting io io.directories io.encodings.utf8 io.files
|
||||
io.files.info io.files.info.unix io.files.types io.pathnames
|
||||
io.trash kernel math math.parser sequences system unix.stat
|
||||
io.files.info io.files.info.unix io.files.trash io.files.types
|
||||
io.pathnames kernel math math.parser sequences system unix.stat
|
||||
unix.users ;
|
||||
|
||||
IN: io.trash.unix
|
||||
IN: io.files.trash.unix
|
||||
|
||||
! Implements the FreeDesktop.org Trash Specification 0.7
|
||||
|
|
@ -3,10 +3,10 @@
|
|||
|
||||
USING: accessors alien.c-types alien.data alien.strings
|
||||
alien.syntax classes.struct classes.struct.packed destructors
|
||||
kernel io.encodings.utf16n io.trash libc math sequences system
|
||||
kernel io.encodings.utf16n io.files.trash libc math sequences system
|
||||
windows.types ;
|
||||
|
||||
IN: io.trash.windows
|
||||
IN: io.files.trash.windows
|
||||
|
||||
<PRIVATE
|
||||
|
Loading…
Reference in New Issue