harriyott.com

23 November 2005

Is a directory path absolute or relative?

After a bit of digging around, I found that

Path.IsPathRooted(directoryName)

can be used to check whether a directory path is absolute or relative in .NET.

0 Comments:

Post a Comment