Solve file filtering
Fix get dirs