Hi all,Can anyone tell me as how to get the status of a file, which is being deleted in workarea but not submitted, as 'DELETED'?Can i make use of -e in perl for that?
Assuming the file was submitted atleast once, you can check if it exists in staging area but not in the workarea. (use -e in Perl)
Thanks but my problem is that only... i need to check the existence of file in workarea only. It is a requirement while completing my job.At the last i have to use an overlapping 'if clause' to check the existence of same file on STAGING... but thats just an addon to my script to avoid issues.
Are you making the check before the file is deleted ? Because once it is deleted, if it was NEVER submitted to staging, it is gone. No workflows needed.
A follow up question. We have some edits in place that prevent certain file types from being submitted in our workflow. However, if the file has been marked "deleted", we want the workflow to allow this file to be submitted to Staging. What is the best way to identify a file marked as "deleted". Should I check the existence in the workarea for the file (if I do this I assume that simply marking it deleted returns "no" to existence in the workraea), and if not found in workarea but is found in Staging, then i've met the criteria? Otherwise I was wondering if there was some kind of property on the file that indicated that it has been marked "deleted".