This commit is contained in:
		@@ -72,11 +72,14 @@ class Executor:
 | 
				
			|||||||
        f.close()
 | 
					        f.close()
 | 
				
			||||||
        return currenctfile
 | 
					        return currenctfile
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def getFileInCurrentDirectory(self, file: str):
 | 
					    def getFileInCurrentDirectory(self, file: str) -> bytes:
 | 
				
			||||||
        file = self.sanitizeFile(file)
 | 
					        file = self.sanitizeFile(file)
 | 
				
			||||||
        currentfile = os.path.join(self.currentDirectory, file)
 | 
					        currentfile = os.path.join(self.currentDirectory, file)
 | 
				
			||||||
        if os.path.exists(currentfile):
 | 
					        if os.path.exists(currentfile):
 | 
				
			||||||
            return open(currentfile, "r")
 | 
					            f = open(currentfile, "rb")
 | 
				
			||||||
 | 
					            content = f.read()
 | 
				
			||||||
 | 
					            f.close()
 | 
				
			||||||
 | 
					            return content
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
            raise Exception('File not found')
 | 
					            raise Exception('File not found')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user