Skip to content

fix: throw IllegalArgumentException for invalid paths in FileSystem#389

Open
MatrixNeoKozak wants to merge 1 commit into
openforis:masterfrom
MatrixNeoKozak:fix/improvement-1781189742894
Open

fix: throw IllegalArgumentException for invalid paths in FileSystem#389
MatrixNeoKozak wants to merge 1 commit into
openforis:masterfrom
MatrixNeoKozak:fix/improvement-1781189742894

Conversation

@MatrixNeoKozak

Copy link
Copy Markdown
  1. Summary: Corrected the FileSystem utility methods toFile and toDir to throw IllegalArgumentException when paths are invalid, instead of merely logging the error.

  2. Rationale: The previous implementation allowed invalid file system operations to proceed after logging, which could lead to unpredictable behavior and potential downstream errors when methods expected a valid File object.

  3. Technical Impact: Improves robustness by enforcing validation and ensuring fail-fast behavior when file system operations are initialized with incorrect paths, preventing erroneous object usage.

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.

1 participant