abattoir
6th June 2013, 23:53
Hi,
I know we can open/read/write/close any file preovided we know the filename and complete path to it.
But in my scneario, i have to read the files for which i dont know the complete path.
Below is an example of the directory structure for the EDI files i have to read :
Parent Directory Intermediate Directory Files
store_recv 060613-1544 810S
store_recv 060613-1244 810S
store_recv 060613-1244 850S
store_recv 060613-0528 850S
In the above example , i know the parent directory is always going to be (store_Recv) , even the files are going to be among (810S,850S..etc), but the issue is in intermediate directory. This Intermediate Directory naming convention is based on (Date-Time), so there is no way for me to guess the Intemediate Directory Name and hence no way to know the complete file path.
I was wondering if we have any function which can look for any files type under a parent directory something like *.* in store_recv directory, bypassing intermediate directory.
Thanks in Advance,
Abattoir
I know we can open/read/write/close any file preovided we know the filename and complete path to it.
But in my scneario, i have to read the files for which i dont know the complete path.
Below is an example of the directory structure for the EDI files i have to read :
Parent Directory Intermediate Directory Files
store_recv 060613-1544 810S
store_recv 060613-1244 810S
store_recv 060613-1244 850S
store_recv 060613-0528 850S
In the above example , i know the parent directory is always going to be (store_Recv) , even the files are going to be among (810S,850S..etc), but the issue is in intermediate directory. This Intermediate Directory naming convention is based on (Date-Time), so there is no way for me to guess the Intemediate Directory Name and hence no way to know the complete file path.
I was wondering if we have any function which can look for any files type under a parent directory something like *.* in store_recv directory, bypassing intermediate directory.
Thanks in Advance,
Abattoir