You might want to reconsider your requirements - as stated, they don't make sense. A "folder" is not an active entity - it never attempts to access anything outside of it on its own.
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin