code: def registerDirectory(self,name,physicalPath,directoryType,cleanupMode,
                            maxFileAge,description):
          
          url = self._url + "/directories/register"
          params = {
              "f" : "json",
              "name" : name,
              "physicalPath" : physicalPath,
              "directoryType" : directoryType,
              "cleanupMode" : cleanupMode,
              "maxFileAge" : maxFileAge,
              "description" : description
          }
  
          res = self._post(url=url,
                           param_dict=params,
                           securityHandler=self._securityHandler,
                           proxy_url=self._proxy_url,
                           proxy_port=self._proxy_port)
  
          return res
docs: Registers a new server directory. While registering the server directory,
          you can also specify the directory's cleanup parameters. You can also
          register a directory by using its JSON representation as a value of the
          directory parameter.
          Inputs:
              name - The name of the server directory.
              physicalPath - The absolute physical path of the server directory.
              directoryType - The type of server directory.
              cleanupMode - Defines if files in the server directory needs to
                              be cleaned up. Default: NONE
              maxFileAge - Defines how long a file in the directory needs to be
                              kept before it is deleted (in minutes).
              description - An optional description for the server directory.