问题标签 [simplefilevisitor]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
16 浏览

java - 尽管 SKIP_SUBTREE,SimpleFileVisitor 仍挂在网络驱动器目录上

我有一个非常慢的网络驱动器的问题,SimpleFileVisitor并且应该跳过它但也挂起。我想问题是读取文件属性。是否有一种内置方法可以只查看路径并忽略其他任何内容以尽可能快?

创建的日志:

仅列出目录很快,但查看它很慢。所以访问者也可能很快,恕我直言。