# File lib/core/facets/file/common_path.rb, line 6
  def self.common_path(*paths)
    return paths.first if paths.length <= 1

    arr = paths.sort
    f = arr.first.split('/')
    l = arr.last.split('/')
    i = 0
    i += 1 while f[i] == l[i] && i <= f.length
    f.slice(0, i).join('/')
  end