lib/rio/ops/symlink.rb in rio-0.4.1 vs lib/rio/ops/symlink.rb in rio-0.4.2
- old
+ new
@@ -1,8 +1,8 @@
#--
# ===============================================================================
-# Copyright (c) 2005,2006,2007 Christopher Kleckner
+# Copyright (c) 2005,2006,2007,2008 Christopher Kleckner
# All rights reserved
#
# This file is part of the Rio library for ruby.
#
# Rio is free software; you can redistribute it and/or modify
@@ -50,9 +50,18 @@
def lstat(*args) fs.lstat(self.to_s,*args) end
end
module Existing
include ExistOrNot
+ def delete(*args)
+ rm(*args)
+ end
+ def unlink(*args)
+ delete(*args)
+ end
+ def delete!(*args)
+ delete(*args)
+ end
end
module NonExisting
include ExistOrNot
def mkdir()
rtn_reset {