Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Hi,

I need to exclude big files but I want to commit all files in "images" folder even if size is more than 1M. There are multiple "images" folders in many dynamic folders like "/users/me/2022_01_01/images/" "/users/me/2022_06_24/images/"

grumphp:
tasks:
file_size:
max_size: 1M
ignore_patterns:
- "/users/me/**/images/*"

I've tried many options without success ...

Anoyone have a solution ?
THX

You must be logged in to vote

Hello,

This configuration uses the symfony Finder path() method:

It doesn't accept globs - but it does accept regular expressions.
Also: you might want to drop the '/' in front - since that indicates an absolute path.

Replies: 1 comment · 1 reply

Comment options

Hello,

This configuration uses the symfony Finder path() method:

It doesn't accept globs - but it does accept regular expressions.
Also: you might want to drop the '/' in front - since that indicates an absolute path.

You must be logged in to vote
1 reply
@Joouul
Comment options

Thank for indication :) It's work :)

Answer selected by Joouul
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.