JennieInMI has asked for the wisdom of the Perl Monks concerning the following question:
I need to verify, via a script, the existence of a file in an installer folder. The name of the installer folder changes daily. It is deleted each night before the build and a new folder is created with the new installer name on it. So the name of the file I need to access is always the same, but the folder the file resides in will be different each time the script is run. Anyone have any idea how I can access that file in the folder with the ever-changing name?
Thank you for the answers. This is my first time doing this and I think I should have given a few more details.
I was attempting to access that file to verify that it was less than 6 hours old, which would mean the process that is designed to write it there had completed successfully. (This script audits an automated build.) I realized that I could just verify the modify time on the folder that holds the installer folder with the name that changes every night. That I can do (thanks to other posts here and on other sites).
Anyway, since I found another way to accomplish my goal, so I guess we're done! Thank you again for the answers. It's always cool to see a problem through new eyes.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Accessing a folder whose name changes daily
by salva (Canon) on Dec 18, 2012 at 15:50 UTC | |
by JennieInMI (Acolyte) on Dec 18, 2012 at 17:42 UTC | |
by salva (Canon) on Dec 18, 2012 at 18:07 UTC | |
|
Re: Accessing a folder whose name changes daily
by Jim (Curate) on Dec 18, 2012 at 17:50 UTC | |
by JennieInMI (Acolyte) on Dec 18, 2012 at 18:34 UTC | |
by Jim (Curate) on Dec 18, 2012 at 23:20 UTC | |
|
Re: Accessing a folder whose name changes daily
by 2teez (Vicar) on Dec 18, 2012 at 15:42 UTC | |
|
Re: Accessing a folder whose name changes daily
by SuicideJunkie (Vicar) on Dec 18, 2012 at 15:45 UTC | |
|
Re: Accessing a folder whose name changes daily
by rpnoble419 (Pilgrim) on Dec 18, 2012 at 17:06 UTC |