- 定义路径
Path path = Paths.get("E:/1.sql");
- 获取文件存储,并检查
try { FileStore store = Files.getFileStore(path); if (store.supportsFileAttributeView(UserDefinedFileAttributeView.class)) { System.out.println("The user defined attributes are supported on: " + store); } else { System.out.println("The user defined attributes are not supported on: " + store); } } catch (Exception e) { e.printStackTrace(); }
检查用户定义属性可支持性
最新推荐文章于 2025-02-20 23:07:05 发布