jordanlytle / SmbAbstraction

Implements the System.IO.Abstractions interfaces for interacting with the filesystem, and adds support for interacting with UNC or SMB paths
MIT License
6 stars 8 forks source link

NTStatus Extension to throw exceptions on NTStatus and reorganize project #3

Closed Jo0 closed 4 years ago

Jo0 commented 4 years ago

Created a NTStatus extension called Handle() to throw a message that coorelates to the NTStatus found in these three Microsoft Open Spec pages SMB Error Classes and Codes SMB Error Classes and Codes NTStatus Values and Descriptions

Then replaced most, if not all, instances of if(status != NTStatus.SUCCESS) with the status.HandleStatus()

Also organized the project so it's a little easier to navigate.