lib/vfs/entries/dir.rb in vfs-0.3.13 vs lib/vfs/entries/dir.rb in vfs-0.3.14

- old
+ new

@@ -38,21 +38,22 @@ entry.destroy else raise Error, "entry #{self} already exist!" end elsif attrs[:dir] - # do nothing + # dir already exist, no need to recreate it + return self else parent = self.parent if parent.exist? # some unknown error raise error else parent.create(options) end end - retry if try < 2 + try < 2 ? retry : raise(error) end end self end def create! options = {} \ No newline at end of file