Added white/black listing for parent folder

Fixes #1474