Esempio n. 1
0
 def createDir(self, Destination_SE, protocol):
     """
     Create remote dir for gsiftp REALLY TEMPORARY
     this should be transparent at SE API level.
     """
     if self.debug : print 'createDir():'
     msg = ''
     try:
         action = SBinterface( Destination_SE )
         action.createDir()
         if self.debug: print "\tThe directory has been created using protocol %s"%protocol
     except TransferException, ex:
         msg  = "ERROR: problem with the directory creation using %s protocol "%protocol
         msg += str(ex)
         if self.debug :
             dbgmsg  = '\t'+msg+'\n\t'+str(ex.detail)+''
             dbgmsg += '\t'+str(ex.output)+''
             print dbgmsg 
         raise Exception(msg)
Esempio n. 2
0
 def createDir(self, Destination_SE, protocol):
     """
     Create remote dir for gsiftp REALLY TEMPORARY
     this should be transparent at SE API level.
     """
     if self.debug : print 'createDir():\n'
     msg = ''
     try:
         action = SBinterface( Destination_SE )
         action.createDir()
         if self.debug: print "\tThe directory has been created using protocol %s"%protocol
     except TransferException, ex:
         msg  = "ERROR: problem with the directory creation using %s protocol "%protocol
         msg += str(ex)
         if self.debug :
             dbgmsg  = '\t'+msg+'\n\t'+str(ex.detail)+'\n'
             dbgmsg += '\t'+str(ex.output)+'\n'
             print dbgmsg 
         raise Exception(msg)