I dont know availability of operating system depending functionality. But if it is available in Windows, i think it should be available in Linux too.
I don't think extending Java File class will work. You will need to write this functionality in native code (e.g. C, C++) and access to it from Java using
JNI. I have done a Linux/Windows interface to a mathematics library. This is not difficult! But as always, you will need to spend time to learn JNI initially.