How to make Unreal compiler ignore dot directories?

I come from a programming background in Unity3D and I’ve made a convention for myself where I include a .trash and .donotcompile directories in my source directory so the Unity compile will ignore old or WIP code. Is there a similar way to make Unreal ignore dot directories like Unity?