added option to return directory entries with full path