lib/rio/ops/file.rb in rio-0.5.1 vs lib/rio/ops/file.rb in rio-0.6.0

- old
+ new

@@ -1,8 +1,8 @@ #-- # =========================================================================== -# Copyright (c) 2005-2012 Christopher Kleckner +# Copyright (c) 2005-2017 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 @@ -20,33 +20,10 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # =========================================================================== #++ # - -#require 'rio/cp' -#require 'rio/piper/cp' -#require 'rio/ops/either' - -# module RIO -# module Impl -# module U -# def self.copy(s,d) -# require 'fileutils' -# ::FileUtils.cp(s.to_s,d.to_s) -# end -# def self.rm(s) -# require 'fileutils' -# ::FileUtils.rm(s.to_s) -# end -# def self.touch(s) -# require 'fileutils' -# ::FileUtils.touch(s.to_s) -# end -# end -# end -# end module RIO module Ops module File module ExistOrNot include FileOrDir::ExistOrNot @@ -89,10 +66,9 @@ alias :rm :delete alias :unlink :delete alias :delete! :delete def touch(*args) rtn_reset { - # fs.touch(self,*args) ::File.open(self.to_s, 'a') { ; } }