How To: Prevent Timeout When Inspecting Unavailable Network Share - C#

前端 未结 4 1934
别那么骄傲
别那么骄傲 2020-12-14 03:25

We have some basic C# logic that iterates over a directory and returns the folders and files within. When run against a network share (\\\\server\\share\\folder) that is ina

4条回答
  •  隐瞒了意图╮
    2020-12-14 03:41

    See...

    Faster DirectoryExists function?

    ...for a way of setting the execution time for Directory.Exists

提交回复
热议问题