Implement WindowsFileAttributes#fileKey
Alan Bateman
Alan.Bateman at oracle.com
Thu Apr 6 14:28:52 UTC 2023
On 06/04/2023 15:22, Fabian Meumertzheim wrote:
> :
>
> It looks like `Files#isSameFile()` is already backed by these fields
> though:
> https://github.com/openjdk/jdk/blob/ddd50d0db31e50c0fcedafa290d6eac277ddae3e/src/java.base/windows/classes/sun/nio/fs/WindowsFileAttributes.java#L349-L356
> <https://urldefense.com/v3/__https://github.com/openjdk/jdk/blob/ddd50d0db31e50c0fcedafa290d6eac277ddae3e/src/java.base/windows/classes/sun/nio/fs/WindowsFileAttributes.java*L349-L356__;Iw!!ACWV5N9M2RV99hQ!P2FgkNydmuds-x_7fAwA1mycw0Ah5_5Fc_O2AL9kuYZVT8Fs6Vz2kLc58QyWAHH1VQv-7os-RtBCS5JL7ifrXg$>.
>
> Issues with volume serial number and file ID as unique identifiers
> should thus already be reachable directly via public API.
>
There has been a number of reports of problems there, WebDAV locations
come to mind. At some point I think we tried to get a list from
Microsoft of the volume types where there is at least some temporal
stability.
-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/nio-dev/attachments/20230406/a8586590/attachment.htm>
More information about the nio-dev
mailing list