class Pathutil

def split_path

Other tags:
    Example: Pathutil.new("/my/path").split_path # => ["", "my", "path"] -

Other tags:
    Note: - The blank part is intentionally left there so that you can rejoin.
def split_path
  @path.split(
    %r!\\+|/+!
  )
end