Skip to content

Conversation

@udirctera
Copy link
Collaborator

### Description

This pull request introduces enhancements to the permission handling and path resolution logic in core commands. Key updates include:

- Refined permission error detection and adjusted path resolution to handle various root cases.
- Improved response handling for task completions with warnings.
- Added a `strict_permission` flag to core file operation methods, enabling optional strict permission validation for actions like copy, move, upload, delete, and rename.

### Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

### How Has This Been Tested?

_Explain how these changes have been tested._

Add `strict_permission` flag to core file operations

This commit introduces an optional `strict_permission` parameter to multiple file operation methods, which enables enhanced permission validation before executing actions like copy, move, upload, delete, and rename.
Improve permission handling and path resolution logic in core commands

This update refines permission error detection, adjusts path resolution to accommodate additional root cases, and improves response handling for task completion with warnings.
Refactor strict permission error handling

This commit streamlines strict permission error detection by introducing helper functions for normalizing responses and mapping errors, improving maintainability and readability of the code.
Extend permission error mapping and refactor strict permission handling logic

This commit adds a comprehensive task error mapping for strict permission validation, introduces a helper function for extracting task error details, and updates logging for improved debugging.
Remove unused `_is_permission_denied_message` function from core commands
Simplify strict permission error handling by replacing error maps with sets.
Add unit tests for strict permission handling in `move` and `mkdir` operations
@udirctera udirctera merged commit 52fd216 into master Jan 27, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants