spring-framework / org.springframework.core.io / PathResource / isReadable

isReadable

open fun isReadable(): Boolean

This implementation checks whether the underlying file is marked as readable (and corresponds to an actual file with content, not to a directory).

See Also
java.nio.file.Files#isReadable(Path)java.nio.file.Files#isDirectory(Path, java.nio.file.LinkOption...)