RFR: 8264400: (fs) WindowsFileStore equality depends on how the FileStore was constructed
Brian Burkhalter
brian.burkhalter at oracle.com
Thu Apr 1 21:46:02 UTC 2021
Hello,
On Apr 1, 2021, at 1:29 PM, Bernd Eckenfels <ecki at zusammenkunft.net<mailto:ecki at zusammenkunft.net>> wrote:
Is it instead possible to store a normalized version of the store base path (for the purpose of equals but also for display)? This would reduce dependence of file name casing semantics which does not in all cases depend only on the host operating system.
It’s not clear what is intended here. WindowsFileStore does not have a base path itself. Its root path is the path supplied as a parameter of Files.getFileStore().
Maybe using lpRootPathName if present in GetVolumeInformation?
lpRootPathName is the same as WindowsFileStore.root and is an input to GetVolumeInformationW() [1].
Thanks,
Brian
[1] https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getvolumeinformationw
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20210401/ae3e8415/attachment.htm>
More information about the nio-dev
mailing list