mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-08-12 10:19:18 +02:00
FileNetworkOpenInformation: IsDirectory property added
This commit is contained in:
parent
26101cc0ae
commit
2ea785159e
1 changed files with 19 additions and 0 deletions
|
@ -54,6 +54,25 @@ namespace SMBLibrary
|
||||||
LittleEndianWriter.WriteUInt32(buffer, offset + 52, Reserved);
|
LittleEndianWriter.WriteUInt32(buffer, offset + 52, Reserved);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public bool IsDirectory
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return ((FileAttributes & FileAttributes.Directory) > 0);
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if (value)
|
||||||
|
{
|
||||||
|
FileAttributes |= FileAttributes.Directory;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
FileAttributes &= ~FileAttributes.Directory;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public override FileInformationClass FileInformationClass
|
public override FileInformationClass FileInformationClass
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue