From 5e63f3b5d8e901690c924084e0fe33337de4c432 Mon Sep 17 00:00:00 2001 From: John Benediktsson Date: Fri, 19 Aug 2011 14:26:32 -0700 Subject: [PATCH] io.trash: cross-platform vocab to send files to trash. --- extra/io/trash/authors.txt | 1 + extra/io/trash/macosx/macosx.factor | 65 +++++++++++++++++++++ extra/io/trash/macosx/platforms.txt | 1 + extra/io/trash/summary.txt | 1 + extra/io/trash/trash-docs.factor | 12 ++++ extra/io/trash/trash.factor | 15 +++++ extra/io/trash/unix/platforms.txt | 1 + extra/io/trash/unix/unix.factor | 83 +++++++++++++++++++++++++++ extra/io/trash/windows/platforms.txt | 1 + extra/io/trash/windows/windows.factor | 73 +++++++++++++++++++++++ 10 files changed, 253 insertions(+) create mode 100644 extra/io/trash/authors.txt create mode 100644 extra/io/trash/macosx/macosx.factor create mode 100644 extra/io/trash/macosx/platforms.txt create mode 100644 extra/io/trash/summary.txt create mode 100644 extra/io/trash/trash-docs.factor create mode 100644 extra/io/trash/trash.factor create mode 100644 extra/io/trash/unix/platforms.txt create mode 100644 extra/io/trash/unix/unix.factor create mode 100644 extra/io/trash/windows/platforms.txt create mode 100644 extra/io/trash/windows/windows.factor diff --git a/extra/io/trash/authors.txt b/extra/io/trash/authors.txt new file mode 100644 index 0000000000..e091bb8164 --- /dev/null +++ b/extra/io/trash/authors.txt @@ -0,0 +1 @@ +John Benediktsson diff --git a/extra/io/trash/macosx/macosx.factor b/extra/io/trash/macosx/macosx.factor new file mode 100644 index 0000000000..456afbdfb2 --- /dev/null +++ b/extra/io/trash/macosx/macosx.factor @@ -0,0 +1,65 @@ +! Copyright (C) 2010 John Benediktsson +! 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 ; + +IN: io.trash.macosx + +