×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
Hello all,
I'm using this code to try to get a list of PDF files in a certain directory on the IFS. This is the important stuff.
try {
// Work with /Dir/File.txt on the system myAS400.
IFSFile fileDirectory = new IFSFile(as400, propPDFEmail.getProperty("PDF_DIRECTORY"));
// Determine the parent directory of the file.
String directory = fileDirectory.getParent();
System.out.println(directory);
// Determine the name of the file.
//Only PDF files will be read.
Enumeration enumIFSFiles = fileDirectory.enumerateFiles("*." + propPDFEmail.getProperty("FILENAME_EXTENSION"));
I'm getting a " ExtendedIOException: Access to request was denied. " on the enumerateFiles method call. Can't seem to figure out the problem. I'm getting a good connection to the server. My user id has access to all of the resources trying to be listed. Anyway I can figure out what's happening here?
Thanks,
Mark
Mark Walter
IBM Certified System i Specialist
Paragon Consulting Services, Inc
mwalter@xxxxxxxxxxxxxxx<mailto:mwalter@xxxxxxxxxxxxxxx>
www.paragon-csi.com<
http://www.paragon-csi.com/>
717.764.7909 Ext. 26
As an Amazon Associate we earn from qualifying purchases.