# File lib/sshkit/backends/abstract.rb, line 81
      def within(directory, &_block)
        (@pwd ||= []).push directory.to_s
        execute "if test ! -d \#{File.join(@pwd)}\nthen echo \"Directory does not exist '\#{File.join(@pwd)}'\" 1>&2\nfalse\nfi\n", verbosity: Logger::DEBUG
          yield
      ensure
        @pwd.pop
      end