I read almost all the documentation but I am not able to understand how to achieve the following.
Let's say I have this folder structure:
Code: Select all
C:\
└── Users\
└── MyUserName\
└── MyMainFolder\
├── file1.pdf
└── image1.jpg
└── Subfolder1\
└── Subfolder2\
└── Subfolder3\
├── file2.pdf
└── image2.jpgTo achieve this, I tried using
Code: Select all
infolder:MyMainFolder\What I want is: if I search for folders or files that are inside MyMainFolder but are further down in the folder hierarchy (in this example: Subfolder2\, Subfolder3\, file2.pdf, and image2.jpg), I don't want them to appear in the results.
Instead, I want the result to show only the folder that is directly inside MyMainFolder and that contains them, in this case that would be Subfolder1.
Since it is difficult to explain by words, I show some examples of what I want:
Code: Select all
search term: .jpg
result: image1.jpg, Subfolder1Code: Select all
search term: Subfolder3
result: Subfolder1Code: Select all
search term: file2
result: Subfolder1