Using Directory.Exists allways give "false"
Hello all,
Im using "Directory.Exists" to verify if a folder exist and if not im crating it.
My problem is the the "Directory.Exists" is always false.
i want to verify "myfolder"
im using SCP protocol and to crate it later in the code and it works with no problem.
But still "Directory.Exists" is always false.
What am i missing here ?
BR,
Idan
Im using "Directory.Exists" to verify if a folder exist and if not im crating it.
My problem is the the "Directory.Exists" is always false.
i want to verify "myfolder"
bool FolderExist= Directory.Exists("/folder1/folder2/myfolder");
im using SCP protocol and
session.ExecuteCommand("mkdir /folder1/folder2/myfolder")
But still "Directory.Exists" is always false.
What am i missing here ?
BR,
Idan