Skip to content

Comments

Doc: clarify VSICurlPartialClearCache()#11493

Merged
rouault merged 1 commit intoOSGeo:masterfrom
rouault:doc_VSICurlPartialClearCache
Dec 14, 2024
Merged

Doc: clarify VSICurlPartialClearCache()#11493
rouault merged 1 commit intoOSGeo:masterfrom
rouault:doc_VSICurlPartialClearCache

Conversation

@rouault
Copy link
Member

@rouault rouault commented Dec 14, 2024

@rouault rouault added the documentation Issues and contributions to the documentation content label Dec 14, 2024
Comment on lines 6300 to 6302
* VSICurlPartialClearCache("/vsis3/f") will clear all cached state for any file
* or directory starting with that prefix, so potentially "/vsis3/fu",
* "/vsis3/foo/" or "/vsis3/foo/bar".
Copy link
Contributor

@sgillies sgillies Dec 14, 2024

Choose a reason for hiding this comment

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

Me, I'm trying not to use foo and bar anymore.

Suggested change
* VSICurlPartialClearCache("/vsis3/f") will clear all cached state for any file
* or directory starting with that prefix, so potentially "/vsis3/fu",
* "/vsis3/foo/" or "/vsis3/foo/bar".
* VSICurlPartialClearCache("/vsis3/b") will clear all cached state for any file
* or directory starting with that prefix, so potentially "/vsis3/bucket",
* "/vsis3/basket/" or "/vsis3/basket/object".

@rouault do I understanding correctly that /vsis3/ can't be truncated? Because that's the name of a handler and not a URL path?

Using "prefix" in the documentation is ambiguous, I think, because S3 also uses the term "prefix", but in a different sense.

Copy link
Member Author

Choose a reason for hiding this comment

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

do I understanding correctly that /vsis3/ can't be truncated?

yes

Using "prefix" in the documentation is ambiguous

yes, any alternative suggestion? That said prefix here matches VSIGetFileSystemsPrefixes()

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, any alternative suggestion? That said prefix here matches VSIGetFileSystemsPrefixes()

changing to:

  • The filename prefix must start with the name of a known virtual file system
  • (such as "/vsicurl/", "/vsis3/", etc.)

@rouault rouault force-pushed the doc_VSICurlPartialClearCache branch from e7b5bbd to c0c23cf Compare December 14, 2024 16:53
Copy link
Contributor

@sgillies sgillies left a comment

Choose a reason for hiding this comment

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

Thank you @rouault . "filename prefix" works for me.

@coveralls
Copy link
Collaborator

Coverage Status

coverage: 69.932% (+0.001%) from 69.931%
when pulling c0c23cf on rouault:doc_VSICurlPartialClearCache
into f9095ea on OSGeo:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Issues and contributions to the documentation content

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants