For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

tryMarkCacheDirectory

abstract fun tryMarkCacheDirectory(file: File)(source)

Try to mark the given cache directory. If an I/O error occurs, this method should not throw an error, but instead log the error at an appropriate level, and return.

Since

8.1

Parameters

file

the cache directory to mark