Method: Zip::ZipFileSystem::ZipFileNameMapper#expand_path
- Defined in:
- lib/pik/contrib/zip/zipfilesystem.rb
#expand_path(aPath) ⇒ Object
587 588 589 590 591 592 |
# File 'lib/pik/contrib/zip/zipfilesystem.rb', line 587 def (aPath) = aPath.starts_with("/") ? aPath : @pwd.ensure_end("/") + aPath .gsub!(/\/\.(\/|$)/, "") .gsub!(/[^\/]+\/\.\.(\/|$)/, "") .empty? ? "/" : end |