GetDirectories fails to enumerate subfolders of a folder with #255 name

前端 未结 3 555
不思量自难忘°
不思量自难忘° 2021-01-24 19:31

My application is C# 3.5 runs on Windows 7 Ultimate, 64 bit. It goes through all folder subfolders to perform its job. However, it fails (falls into the infinite loop until Stac

3条回答
  •  执笔经年
    2021-01-24 19:45

    Why on earth do you have a folder called "_" anyway? It is not descriptive at all.. the idea of a folder is that you can contain all related files in that folder and possibly use subfolders to group them even more; folder names should generally be descriptive - for example many sites have a folder called "css" or "stylesheets".. Doubt I need to explain what they're for tho as they're pretty self-explanatory.. I, personally, cannot think of a single situation where I would be using 1 symbol for a folder name. It is best, in my opinion, to stick to alphanumeric characters and seldom use symbols (it is safer as you never hit these situations on any operating system).

提交回复
热议问题