class Git::Path

def initialize(path, check_path=true)

def initialize(path, check_path=true)
  path = File.expand_path(path)
  if check_path && !File.exist?(path)
    raise ArgumentError, 'path does not exist', [path]
  end
  @path = path
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