I develop Windows application that write data to file located on filesystem.
I have 2 options to reach the filesystem:
- Physical path: C:\Folder\Myfile.txt
- UNC Path (Configured RWX MyShare): \MyShare\Myfile.txt
When using Physical path we never get errors when handling the file.
When using UNC, Sometimes when handling the file, we receive "unexpected network error occurred".
I am wondering if UNC and Physical path is using different drivers/kernel modules/security layers internally in the OS?
On linux when you File.Open or File.Read, it depend on the filesystem type, each filesystem will have different implementation, you will go through different security layers. Is it the same on windows?
Questions:
- When using UNC / Physical path, do we go via different drivers / seucity layers?
- When Using UNC, Could it be Endpoint protection/Firewall/Antivirus might add additional security layer?