File::Spec->no_upwards(files)
files
Strips names of files referring to a parent directory from a list of filenames. Doesn't strip symbolic links.