Hello i have a folder on a network that i can access via SMB
.
I can connect through a linux bash using Samba SMB Client
using:
smbclient [IP] -U [user]
--i am required to enter password and then i have access.
I can then access the path.
I am trying to access the remote folder via a ASP NET Core 3.1
application hosted on linux and it seems i it does not see the folder:
var path="smb//[username]:[password]@\\[IP]\\[Path-to-remote-folder]"
var doesFolderExist=Directory.Exists(path);
I get a false
but the folder exists and can be accessed from the bash
with smbclient
command.
How can i get access to the remote folder via SMB
?