feat: Allow reading part of a file - #10
Merged
Merged
Conversation
readRange method to libraryreadRange method
Drop new readRange method, since it's more useful to add this functionality to readFile and readFileInChunks. References: https://outsystemsrd.atlassian.net/browse/RMET-4376
readRange method
OS-ruimoreiramendes
approved these changes
Jan 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Description
Original PR added a new
readRangemethod.Has since been refactored by @OS-pedrogustavobilro to Implement partial read of files by adding optional
offsetandlengthtoreadFileandreadFileInChunks. The parameters were added to new overloaded methods instead of changing the existing ones. While breaking changes are acceptable in this library (known consumers are only our plugins), this one was avoidable.Context
Allow reading only part of a file
Type of changes
Tests
Refer to unit tests for validating changes.
For the team reviewing this PR, you can test using this OutSystems app -> Click "Files", write a file, then click it to open a new screen to read, there you'll be able to expand options for offset and length.