lib/vfs/entries/universal_entry.rb in vfs-0.3.12 vs lib/vfs/entries/universal_entry.rb in vfs-0.3.13

- old
+ new

@@ -1,21 +1,21 @@ module Vfs class UniversalEntry < Entry - # + # # Attributes - # + # def exist? attrs = get !!(attrs[:dir] or attrs[:file]) end - - + + # # CRUD # def destroy storage.open_fs do |fs| - attrs = get + attrs = get fs.delete_dir path if attrs[:dir] fs.delete_file path if attrs[:file] end self end \ No newline at end of file