Hello, the doc mentions that the .prefectignore fi...
# ask-community
j
Hello, the doc mentions that the .prefectignore file supports the git ignore patterns. However when testing I see that this does not support wildcard like "*" exclude everything. Am I the first to face this ?
k
I use
*
in my .prefectignore and it works
j
Have you ever tried * alone with negation statements ? like * !flow.py
Copy code
# Ignore everything
*

# But not these files...
!.gitignore
!script.pl
!template.latex
# etc...
k
I tried this before, but let me try again
which version of Prefect are you in?
j
2.6.9
k
I just tested with 2.7.0 and a S3 storage block. My current directory looks like this:
Copy code
.
├── test2.py
├── test3.py
├── test4.py
├── test5.py
and here is my .prefectignore:
Copy code
# Ignore everything
*

# But not these files...
!test2.py
Only test2 is uploaded to S3 when I ran prefect deployment build, so it looks like it’s working right
j
Humm, I didn't had this outcome. Let me try this again!
👍 1
yup it works finally, thanks!
🎉 1