DNL
This commit is contained in:
		@@ -105,13 +105,12 @@ class Server:
 | 
			
		||||
            if secondParam != "":
 | 
			
		||||
                self.networkInstance.sendMessage("ERROR".encode('UTF-8'))
 | 
			
		||||
            else:
 | 
			
		||||
                # TODO
 | 
			
		||||
                # Megkapod a filenevet arguemntumkent
 | 
			
		||||
                # Kuldeni kell egy uzenetet, ami a falj tartalma
 | 
			
		||||
                # Kuldeni kell egy uzenetet, ami EOF
 | 
			
		||||
                # Mindig minden legyen UTF-8-kent kodolva, kiveve a falj, az marard
 | 
			
		||||
                # Ha sikeres, OK valaszt megkapod, kulonben ERROR valaszt megkapod
 | 
			
		||||
                pass
 | 
			
		||||
                try:
 | 
			
		||||
                    file = self.executor.getFileInCurrentDirectory(firstParam)
 | 
			
		||||
                    self.networkInstance.sendMessage(file)
 | 
			
		||||
                    self.networkInstance.sendMessage("OK".encode('UTF-8'))
 | 
			
		||||
                except:
 | 
			
		||||
                    self.networkInstance.sendMessage("ERROR".encode('UTF-8'))
 | 
			
		||||
        else:
 | 
			
		||||
            self.networkInstance.sendMessage("ERROR".encode('UTF-8'))
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user