OK, so I am looking to change my WF if someone checks a dir, I want to add all the modified files underneath. Easy enough, run iwlistmod, ignore locked(by other people) files and private files.
Also, if a folder is listed in listmod, then find any files underneath it.
Otherwise the deployments (via filelist) will be incorrect.
I found some code from Adam in a post a couple years ago:
my %PRIVATE = {process} qx{iwlistpriv $vpath};
my %LOCKED = {process} qx{iwlistlocks $vpath};
my %MODIFIED
while(my $entry = {process} qx{iwlistmod $vpath})){
if (!$PRIVATE{$entry} && !$LOCKED{$entry}){
$MODIFIED{$entry} = q{};
}
}
My question is what does the {process} step do ?