# Ingest files from many subfolders from sFTP / Azure Blob Storage / etc

**URL:** <https://community.palantir.com/t/ingest-files-from-many-subfolders-from-sftp-azure-blob-storage-etc/663>\
**Category:** Ask the Community\
**Tags:** data-connection\
**Created:** [July 9, 2024, 12:41pm UTC](https://community.palantir.com/t/ingest-files-from-many-subfolders-from-sftp-azure-blob-storage-etc/663 "2024-07-09T12:41:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![VincentF](https://avatars.discourse-cdn.com/v4/letter/v/8491ac/32.png) [@VincentF](https://community.palantir.com/u/VincentF)\
**Post date:** [July 9, 2024, 12:41pm UTC](https://community.palantir.com/t/ingest-files-from-many-subfolders-from-sftp-azure-blob-storage-etc/663/1 "2024-07-09T12:41:35Z")

</div>

I have a structure of files that is highly nested in folders in my source system:

```markdown
- Root
  - Folder1
    - Subfolder1
      - SubSubfolder1
        - File1.txt
        - File2.md
      - SubSubfolder2
        - File3.txt
    - Subfolder2
      - SubSubfolder3
        - SubSubSubfolder1
          - File4.md
  - Folder2
    - Subfolder3
      - SubSubfolder4
        - File5.txt
      - SubSubfolder5
        - SubSubSubfolder2
          - File6.md
          - File7.txt

```

How can I configure my Data Connection Sync so that I can ingest all files from all subfolders ?

Note: I see the path matches option, but I want to know if I can specify something like `*/file*` as a pattern, or something like it, to match all files regardless of their path.

![image](https://canada1.discourse-cdn.com/palantir/original/1X/d7ff529f599474b885ae973ca0d4eaac2334d896.png)

---

<div class="post-metadata">

**Author:** ![dherls](https://yyz1.discourse-cdn.com/palantir/user_avatar/community.palantir.com/dherls/32/19_2.png) [@dherls](https://community.palantir.com/u/dherls)\
**Post date:** [July 11, 2024, 5:02pm UTC](https://community.palantir.com/t/ingest-files-from-many-subfolders-from-sftp-azure-blob-storage-etc/663/2 "2024-07-11T17:02:14Z")

</div>

The “Path matches” option takes a regular expression, not a UNIX-style glob. So if you wanted to match all text in a folder you would want `folder/.*.txt`
