class Git::Path

def initialize(path, check_path = true)

def initialize(path, check_path = true)
  if !check_path || File.exists?(path)
    @path = File.expand_path(path)
  else
    raise ArgumentError, "path does not exist", File.expand_path(path)
  end
end

def readable?

def readable?
  File.readable?(@path)
end

def to_s

def to_s
  @path
end

def writable?

def writable?
  File.writable?(@path)
end