Home / General / Directory.Exists() Issue
digWin is a community news sharing site for Microsoft Techies. Share interesting news/links and rate them!

Directory.Exists() Issue

On Windows CE 4.X based devices, Directory.Exists() treats path names ending with a slash "\" differently. As an example,


Directory.Exists("\\temp")


will return true if the "temp" directory exists. However, the following call will return false even though the directory exists:


Directory.Exists("\\temp\\")


On Windows Mobile 5.0 devices, NETCF's behavior is consistent with Desktop's; that is, Directory.Exists() returns true if and only if the directory exists, no matter whether there is a trailing slash in the path or not. For the above example, we will return true









Microsoft news, tips and tricks search

Comments


Post voted by 1 digWinners


Featured Links

User

Login | Register




Forgot Password?

Sponsor

Anti spam filter for mail servers
Anti spam, anti phishing and email management software for Exchange/SMTP/Lotus. Download a FREE trial!

Featured

Download Free Exchange Ebook

Categories

Upcoming NEW

Recent comments

Related Sites