Added a filter to exclude directories
Fixed non deleted parent directories