Missing Posix file attributes/permissions?

Alan Bateman Alan.Bateman at Sun.COM
Sun Jul 20 11:06:09 PDT 2008

Eric Brown wrote:
> Is there a way to identify other attributes/permissions of files in Posix?
> In particular, if a file is a socket, block device, character device, FIFO, UID bit, GID bit, or Sticky bit?
The API allows for FileAttributeViews to be defined beyond the 
specification (ie: you aren't limited to those that are defined by the 
java.nio.attribute package). To that end, we expect to include an 
implementation specific FileAttributeView that provides access to all 
the file type bits in the file mode. The uid/gid would also be 
accessible, as would other stat members (you almost have the uid/gid 
already with the UserPrincipal abstraction).


More information about the nio-dev mailing list