Update Thanks Grandfather for pointing me to the "it" instead of "if"use strict; use warnings; my @path= split /\//,'/abc/def/ghi/jkl'; my $currentpath= undef; while ($#path) { $currentpath= join '/',@path # your setfacl here last if -r $currentpath; $currentpath= undef; pop @path; } die "Couldn't setfacl" unless $currentpath;
In reply to Re: Directory traversal backwards
by Skeeve
in thread Directory traversal backwards
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |