if i_shnum in shnums:
os.unlink(i_sharefile)
- def delete_all_shares(self, serverdir):
+ def empty_sharedir(self, serverdir):
sharedir = os.path.join(serverdir, "shares")
for prefixdir in os.listdir(sharedir):
if prefixdir != 'incoming':
self._add_server_with_share(server_number=3, share_number=1)
# Copy shares
self._copy_share_to_server(3, 1)
- self.delete_all_shares(self.get_serverdir(0))
+ self.empty_sharedir(self.get_serverdir(0))
client = self.g.clients[0]
client.encoding_params['happy'] = 4
return client
# Copy shares
self._copy_share_to_server(3, 1)
#Remove shares from server 0
- self.delete_all_shares(self.get_serverdir(0))
+ self.empty_sharedir(self.get_serverdir(0))
client = self.g.clients[0]
client.encoding_params['happy'] = 4
return client