In a web-app that I am using I can write Python script and I have access to some libraries, which contain some functions I want to use. However, the web-app seems to restrict a lot of "normal" python capacities, including some imports.
The trouble is that I can't get my hands on the documentation for the libraries that I can use. Let's use the FileUtils
library as am example of a non-standard library I am allowed to import.
I managed to get a list of methods using dir(FileUtils)
.
Now I could see that what I'm probably looking for is getFile
, and through some trail and error, I'm pretty sure it takes two arguments, of which the first one is a string of the file path.
I am stuck on what else I must input and I am hoping that if I can just see the argument name, that might give it away. (I've tried 'r'
, but to no avail.) I know that normally the inspect
module would help me out, but the web-app crashes when I try to import it. Hence the question.