Skip to content

[18.0][IMP] fs_storage: add _move_file helper#606

Open
ArnauCForgeFlow wants to merge 1 commit into
OCA:18.0from
ForgeFlow:18.0-imp-fs_storage-add_move_file_method
Open

[18.0][IMP] fs_storage: add _move_file helper#606
ArnauCForgeFlow wants to merge 1 commit into
OCA:18.0from
ForgeFlow:18.0-imp-fs_storage-add_move_file_method

Conversation

@ArnauCForgeFlow
Copy link
Copy Markdown

Add a generic _move_file helper on fs.storage: checks that the source file exists and schedules fs.move as a post-commit hook so the storage stays in sync with the DB transaction.

@simahawk
Copy link
Copy Markdown
Contributor

Build fixed here #603

@ArnauCForgeFlow
Copy link
Copy Markdown
Author

Rebased @simahawk

Copy link
Copy Markdown
Contributor

@LoisRForgeFlow LoisRForgeFlow left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
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.

would be nice to have some test cov

Comment thread fs_storage/models/fs_storage.py Outdated
@ArnauCForgeFlow ArnauCForgeFlow force-pushed the 18.0-imp-fs_storage-add_move_file_method branch from 5e87199 to 4726811 Compare May 21, 2026 12:41
@ArnauCForgeFlow
Copy link
Copy Markdown
Author

@simahawk added tests

@ArnauCForgeFlow
Copy link
Copy Markdown
Author

can we merge? @simahawk

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