Hello.
I'm trying to determine if a file Exists or not in a directory (folder).
I know the folder is EMPTY...nothing in it. However a similar file name is in a different directory...why is it picking up a file in a different directory when it should be returning NOTHING or Zero Files??? See screen shot:
I know the TEMP folder is EMPTY...however you can see from the screen shot below it found a file in a totally different directory???
Hi @smithmrk ,
It seems that the Find files in folder by path action also searches within subfolders - i.e. folders underneath /1099/TEMP.
You may be able to get away with using Pattern for the File Search Mode, then filter the results, filtering for the exact file path and filename? Using OneDriveSearch for the File Search Mode doesn't return the full path of the file so we can't filter the files based on the path.
In the sample results below, note the two paths as returned by the Pattern search mode:
{
"Id": "b!nzu48wrMZk6wUa2mtk43v-BAQOSBY366FHKIOJSAKCX54C4",
"Name": "Test1.docx",
"NameNoExt": "Test1",
"DisplayName": "Test1.docx",
"Path": "/1099/TEMP/Test1.docx",
{
"Id": "b!nzu48wrMZk6wUa2mtk43v-F8iPoxJAxKiXUPzIa7meKD4I4K",
"Name": "Test1.docx",
"NameNoExt": "Test1",
"DisplayName": "Test1.docx",
"Path": "/drives/b!nzu48wrMZk6wUa2mtk43v-F8iPoxJAxKiXUPzIa7meKhmZ2_IOOwTJX7DMvB0_J0/root:/1099/TEMP/sub1/Test1.docx",
Hope this helps.
Ellis
____________________________________
If I have answered your question, please mark the post as Solved.
If you like my response, please give it a Thumbs Up.