This content has been marked as final. Show 3 replies
We use Oracle 11G SOA Suite. Under Unix, I have tried to use os.chdir and noticed I get the >> OSError: [Errno 0] chdir not supported in Java:
Isn't the os library written in Java under Jython ? Looks like it is a native call to the OS ? I guess its the case with Peter's observation as well.
No sure why your not able to import os module. Environmental settings, classpaths? I have imported os and os.path
Once your able to access os module...
I tried this and it returns a list os.listdir(path='myPathString')
e.g print os.listdir(path='.')
gives me a list of files under the current directory. I had to provide the optional parameter Path within listdir.
myList = ArrayList()
myList = os.listdir(path='.')
for item in myList:
Hope this helps.
Edited by: 974995 on Dec 4, 2012 4:36 PM
Edited by: 974995 on Dec 4, 2012 4:41 PM