feat(services/fs): add file as an alias scheme for fs
#7075
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.
Which issue does this PR close?
Closes #7066.
Rationale for this change
The recently-added URI feature uses OpenDAL's existing idea of a scheme, which in most cases matches the commonly-used schemes for different services. However, the filesystem service uses the scheme
fs, while standard file system URIs use the schemefile. This is confusing for users who expect to usefile://URIs.By adding
fileas an alias forfs, users can use the standard URI scheme while maintaining backward compatibility with the existingfsscheme.What changes are included in this PR?
FILE_SCHEMEconstant ("file") incore/services/fs/src/lib.rsfileas an alias forFsservice in the operator registryfile://URIs work correctlyAre there any user-facing changes?
Yes. Users can now use the standard
file://URI scheme to create filesystem operators, in addition to the existingfs://scheme. This is fully backward compatible.AI Usage Statement
This PR was developed with the assistance of Claude (Anthropic).