RSS

タグ : ReparsePoint

[.NET] How to Check a directory is ‘Directory Junction’

you can use FileAttributes.ReparsePoint like this.

[csharp]
if ((File.GetAttributes(subdir) &
FileAttributes.ReparsePoint) !=
FileAttributes.ReparsePoint)
[/csharp]

Attribute constants name on Win32API
FILE_ATTRIBUTE_REPARSE_POINT

supported OS Win2k or later?

i don’t know, how to create reparse directory