Object
# File lib/fusefs.rb, line 38 def scan_path(path) path.scan(/[^\/]+/) end
# File lib/fusefs.rb, line 30 def split_path(path) cur, *rest = path.scan(/[^\/]+/) if rest.empty? [ cur, nil ] else [ cur, File.join(rest) ] end end