First of all, open the McAfee antivirus software on your computer and go to the ‘VirusScan’ console.
Now, right-click on the ‘On-Access Scan’, which is given in the menu option. After that, you have to left-click on the tab of ‘Properties’.
Then, you have to select ‘All Processes -> Detection -> Exclusions’ in the menu option and then ‘Add’ button.
You will see the Windows explorer from where you can select your desired path for real-time scanning on McAfee. You will have to check all the boxes to ‘Also Exclude Subfolders’. Then, click ‘OK’ when you are done and close the antivirus programme in order to apply your settings.