Ejemplo n.º 1
0
 def test_createdeleteDirectory(self):
     smb = self.create_connection()
     smb.login(self.username, self.password, self.domain)
     smb.createDirectory(self.share, self.directory)
     smb.deleteDirectory(self.share, self.directory)
     smb.createDirectory(self.share, self.directory)
     nested_dir = "%s\\%s" % (self.directory, self.directory)
     smb.createDirectory(self.share, nested_dir)
     try:
         smb.deleteDirectory(self.share, self.directory)
     except Exception as e:
         if e.error == nt_errors.STATUS_DIRECTORY_NOT_EMPTY:
             smb.deleteDirectory(self.share, nested_dir)
             smb.deleteDirectory(self.share, self.directory)
     smb.logoff()
Ejemplo n.º 2
0
 def test_createdeleteDirectory(self):
     smb = self.create_connection()
     smb.login(self.username, self.password, self.domain)
     smb.createDirectory(self.share, self.directory)
     smb.deleteDirectory(self.share, self.directory)
     smb.createDirectory(self.share, self.directory)
     nested_dir = "%s\\%s" %(self.directory, self.directory)
     smb.createDirectory(self.share, nested_dir)
     try:
         smb.deleteDirectory(self.share, self.directory)
     except Exception as e:
         if e.error == nt_errors.STATUS_DIRECTORY_NOT_EMPTY:
             smb.deleteDirectory(self.share, nested_dir)
             smb.deleteDirectory(self.share, self.directory)
     smb.logoff()
Ejemplo n.º 3
0
 def test_createdeleteDirectory(self):
     smb = self.create_connection()
     smb.login(self.username, self.password, self.domain)
     smb.createDirectory(self.share, self.directory)
     smb.deleteDirectory(self.share, self.directory) 
     smb.logoff()
Ejemplo n.º 4
0
 def test_createdeleteDirectory(self):
     smb = self.create_connection()
     smb.login(self.username, self.password, self.domain)
     smb.createDirectory(self.share, self.directory)
     smb.deleteDirectory(self.share, self.directory)
     smb.logoff()