Note: These pages are being reviewed.
What are File Attributes?
FileObjects have attributes. These are ad-hoc key-value pairs which can be associated with a file and persist across shutdown and restart.
Attributes are routinely used in the module XML files which define the initial contents of the system filesystem. They are used to providing additional configuration data for files, such as declaring sorting order or the path to an icon file.
Attributes are perfectly safe to use freely in
In pre-4.0 NetBeans, they were relatively commonly used for user files on disk. They still may be used for user files, but this is now discouraged - the infrastructure has been changed to store all attributes in the userdir rather than sprinking
.nbattrs files in directories all over the user’s disk. Since they are now stored in a central location, the more attributes there are, the longer it takes to find attributes for any given file. Using attributes for user files on disk has negative performance implications.
Apache Migration Information
The content in this page was kindly donated by Oracle Corp. to the Apache Software Foundation.
This page was exported from http://wiki.netbeans.org/DevFaqFileAttributes , that was last modified by NetBeans user Tboudreau on 2010-02-19T01:50:59Z.
NOTE: This document was automatically converted to the AsciiDoc format on 2018-02-07, and needs to be reviewed.