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

isWritable

open fun isWritable(): Boolean

Overrides WritableResource.isWritable

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

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