DosFileAttributes
Interface DosFileAttributes
- All Superinterfaces:
- BasicFileAttributes
public interface DosFileAttributes extends BasicFileAttributes
File attributes associated with a file in a file system that supports legacy "DOS" attributes.
Usage Example:
Path file = ... DosFileAttributes attrs = Files.readAttributes(file, DosFileAttributes.class);
- Since:
- 1.7
Methods
isReadOnly
boolean isReadOnly()
Returns the value of the read-only attribute.
This attribute is often used as a simple access control mechanism to prevent files from being deleted or updated. Whether the file system or platform does any enforcement to preve