Added local path generation to list dir method