lib/vfs/path.rb in vfs-0.4.0 vs lib/vfs/path.rb in vfs-0.4.1

- old
+ new

@@ -82,15 +82,13 @@ result, probably_dir = [], false parts = path.split('/')[1..-1] if parts parts.each do |part| - if part == '..' and root != '.' + if part == '..' and (root != '.' or (root == '.' and result.size > 0)) return nil, false unless result.size > 0 result.pop probably_dir ||= true - # elsif part == '.' - # # do nothing else result << part probably_dir &&= false end end \ No newline at end of file