Hard Links

Alan Bateman Alan.Bateman at oracle.com
Fri May 13 14:16:25 PDT 2011


Scott Palmer wrote:
> :
> I suppose I can file a RFE, as it seems a bit imbalanced to support hardlink creation in a cross-platform way, but only provide a way to get the link count on unix.  After all, it isn't feasible to create a hardlink everywhere either… but as I mention above, the decision was made to support them in a cross-platform way by including createLink in the API. It seems the support is only missing this tiny bit to be "complete".
>   
The method is marked as "optional operation" (same thing for the methods 
that operation on symbolic links too) and throws UOE if not supported. 
The only reason that createLink is there is to allow for file 
synchronization tools, it's unlikely to be used much beyond that.

As I said, the support for attributes is very extensible so if there is 
a good case to add it to the API they it could easily be added as part 
of an extended view. Not for jdk7 of course as only critical things are 
allowed in now. It could also be supported on a per provider or platform 
specific basis if needed too (as I say, it just never come up, and has 
not been in the API for two years).

-Alan


More information about the nio-discuss mailing list