Shared path containment predicate for local filesystem guardrails.
Returns:
7 8 9 10 11
# File 'lib/kward/path_guard.rb', line 7 def inside?(path, root) path = path.to_s root = root.to_s path == root || path.start_with?(root + File::SEPARATOR) end