public abstract FileStore getFileStore (Path path) throws IOException

Returns the FileStore representing the file store where a file is located. This method works in exactly the manner specified by the Files.getFileStore method.

Parameters:
path     the path to the file

Returns:  the file store where the file is stored

Exceptions:
IOException     if an I/O error occurs
SecurityException     In the case of the default provider, and a security manager is installed, the checkRead method is invoked to check read access to the file, and in addition it checks RuntimePermission ("getFileStoreAttributes")