help about win_find

i’m trying to find one file into a folder with recursive option but it returns to result .
when i put the exact path of the file , it sucess
can someone help me :slight_smile:
thanks

below my success code

  • name: “search folder to copy”
    win_find:
    paths: C:\xXXXX\YYYY\1\Software
    patterns: “myZipfile.zip”
    use_regex: no
    recursive: yes
    file_type: file
    register: allfiles
    failed_when: false

below the one which fails

  • name: “search folder to copy”
    win_find:
    paths: C:\xXXXX\YYYY
    patterns: “myZipfile.zip”
    use_regex: no
    recursive: yes
    file_type: file
    register: allfiles
    failed_when: false