text: """The window to specify which directory to send a file to"""
  
  from PyQt4 import QtCore, QtGui
  from Core.globals import options, mainWidgets
  
  class SendDirectoryWindow(QtGui.QDialog):
      def __init__(self, parent = None):
          """
          Create a send directory window to send a file to the server.
          """
          QtGui.QDialog.__init__(self, parent)
  
          self.filename = ""
          self.radio1 = QtGui.QRadioButton("bin")
          self.radio2 = QtGui.QRadioButton("tmp")
          self.radio3 = QtGui.QRadioButton("data")
          self.filenameLabel = QtGui.QLabel("")
          self.sendButton = QtGui.QPushButton("Send")
          self.cancelButton = QtGui.QPushButton("Cancel")
          self.choices = [self.radio1, self.radio2, self.radio3]
  
          buttonLayout = QtGui.QHBoxLayout()
          buttonLayout.addWidget(self.sendButton)
          
          layout = QtGui.QVBoxLayout()
          layout.addWidget(self.filenameLabel)
          layout.addWidget(self.radio1)
          layout.addWidget(self.radio2)
          layout.addWidget(self.radio3)
          layout.addLayout(buttonLayout)
  
          self.setLayout(layout)
          self.setWindowModality(QtCore.Qt.ApplicationModal)
          self.resize(250, 150)
          self.setWindowTitle("Destination Directory")
  
          self.connect(self.sendButton, QtCore.SIGNAL("clicked()"), self.send)
          self.connect(self.cancelButton, QtCore.SIGNAL("clicked()"), self.reject)
  
      def setFilename(self, filename):
          """
          Set the filename to send to the server.
          """
          self.filename = filename
          self.filenameLabel.setText(filename)
          
      def send(self):
          """
          Send the file to the server.
          """
          self.hide()
          client = mainWidgets["client"]
          if not client:
              return
  
          for radio in self.choices:
              if radio.isChecked():
                  client.process("file " + radio.text() + " " + self.filename)
                  return
  