# File lib/net/ssh/session_helpers.rb, line 45
      def directory_exists?(path)
        run("test -d #{path}").success?
      end