Use File.directory?(path.to_s) instead of File.directory?(path)
Use File.directory?(path.to_s) instead of File.directory?(path)

I was getting some ArgumentErrors traced back to this line. Changing to
dir.to_s solved them.

treyhunner/dotfiles,treyhunner/dotfiles