Ignoring a Directory

That is a misunderstanding.

“Ignored Files” is supposed to be used for e.g. to prevent uploading Thumb.db files (on windows).

Your use case could not be solved AFIAK.