Fix #57 #101
@ -182,6 +182,9 @@ public abstract class ClientManagement extends ServeErrors implements Runnable {
|
||||
* @throws VersionRemoteError
|
||||
*/
|
||||
protected String[] listDirectory() throws EmptyDirectory, InternalError, UnknownHostException, IOException, TransmissionError, ProtocolError, VersionError, SizeError, InternalRemoteError, ProtocolRemoteError, VersionRemoteError {
|
||||
if (hostList.size() == 0) {
|
||||
return new String[0];
|
||||
}
|
||||
ProtocolP2PPacket<?> d = createProtocolP2PPacket(new Payload(RequestResponseCode.LIST_REQUEST));
|
||||
try {
|
||||
d.sendRequest(getHostItemSocket(hostList.get(0)));
|
||||
|
Loading…
Reference in New Issue
Block a user