File.ExistsAsync and File.OpenAsync #74848
Answered
by
stephentoub
TonyValenti
asked this question in
Q&A
-
I have a ton of files whose existence I need to check. If they are on a really slow network share or on an SMB location that I don't have permission to access, it can take ~10-15 seconds to fail out. Is there an OpenAsync or ExistsAsync somewhere that I can call that I can cancel with either a token or a timeout? |
Beta Was this translation helpful? Give feedback.
Answered by
stephentoub
Aug 31, 2022
Replies: 1 comment 2 replies
-
There isn't. The OSes don't provide async versions of these operations. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
huoyaoyuan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There isn't. The OSes don't provide async versions of these operations.