class Koine::FileSystem::PathSanitizer

Public Instance Methods

sanitize(path) click to toggle source
# File lib/koine/file_system/path_sanitizer.rb, line 8
def sanitize(path)
  path.to_s.gsub('/../', '/').gsub(%r{\.?\./}, '')
end