FileExists超时 [英] FileExists timeout

查看:50
本文介绍了FileExists超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

Faster DirectoryExists功能?

我要检查网络驱动器上是否存在某些文件。但是如果驱动器断开连接,FileExists太慢。我该如何检查超时?

I want to check if some file exists on a network drive. But FileExists is too slow if drive is disconnected. How can I check it with some timeout?

欢迎使用示例。

推荐答案

签出

Faster DirectoryExists功能?

我在那里问过同样的问题。实质是不幸的是,如果文件不存在,您将无法避免长时间的超时。

I asked the same question there. The essence is that unfortunately you can't avoid those long timeouts if the file does not exist.

这篇关于FileExists超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆