Class: Webroar::FileHelper
- Inherits:
-
Object
- Object
- Webroar::FileHelper
- Defined in:
- lib/whelper.rb
Class Method Summary collapse
Class Method Details
.copy(src, dest) ⇒ Object
31 32 33 34 35 |
# File 'lib/whelper.rb', line 31 def self.copy(src, dest) return false unless File.exist?(src) FileUtils.copy(src, dest) return true end |
.move(src, dest) ⇒ Object
37 38 39 40 41 |
# File 'lib/whelper.rb', line 37 def self.move(src, dest) return false unless File.exist?(src) FileUtils.move(src, dest) return true end |
.remove(src) ⇒ Object
43 44 45 46 47 |
# File 'lib/whelper.rb', line 43 def self.remove(src) return false unless File.exist?(src) FileUtils.remove(src) return true end |