Skip to content

[16.0][IMP] fs_storage: pattern matching should only apply to file name, not full path#317

Merged
OCA-git-bot merged 1 commit intoOCA:16.0from
tuantrantg:16.0-imp-fs_storage
Feb 21, 2024
Merged

[16.0][IMP] fs_storage: pattern matching should only apply to file name, not full path#317
OCA-git-bot merged 1 commit intoOCA:16.0from
tuantrantg:16.0-imp-fs_storage

Conversation

@tuantrantg
Copy link
Contributor

No description provided.

@tuantrantg tuantrantg changed the title [IMP] fs_storage: pattern matching should only apply to file name, not full path [16.0][IMP] fs_storage: pattern matching should only apply to file name, not full path Jan 4, 2024
Copy link
Contributor

@simahawk simahawk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A remark for the commit msg

[IMP or FIX] fs_storage: improve/fix find_files pattern match

bla bla explanation 

regex = re.compile(pattern)
for file_path in self.fs.ls(relative_path, detail=False):
if regex.match(file_path):
# fs.ls returns a relative path
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As this method is deprecated, does it makes sense to improve it? Unless, this is a fix...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, it's a fix

…should only apply to file name, not full path
@tuantrantg tuantrantg marked this pull request as ready for review January 17, 2024 07:08
@lmignon
Copy link
Contributor

lmignon commented Feb 21, 2024

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 16.0-ocabot-merge-pr-317-by-lmignon-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit e9a129a into OCA:16.0 Feb 21, 2024
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at cb15c6f. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants