Hi, @kody
Thank you for posting in Microsoft Q&A forum.
The example is only for mapped network drive, if your E:\ is not a mapped network drive, list E:\X_Folder will exclude all the files and it's multiple subfolders.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Add comment".