Remote Directory Listing failed due to prepand slash before Directory.
> 2022-01-06 23:29:15.380 CWD /'TestDir'
RemoteDirectoryInfo remoteDirInfo= session.ListDirectory("/'TestDir'")
CWD /'TestDir'
so directory listing was failed.
So to complete directory listing I want to remove
/
from CWD /'TestDir'
so my question is that how to remove /
from CWD /'TestDir'
, so log will be as CWD 'TestDir'
then it is working fine.
I have tried with below code but it's not working
RemoteDirectoryInfo remoteDirInfo= session.ListDirectory("'TestDir'")
CWD /'Home'/'TestDir'
. I want to remove /'Home'/
from CWD /'Home'/'TestDir'
. So my question is that how to remove /'Home'/
from CWD /'Home'/'TestDir'
. So log will be as CWD 'TestDir'
then it is working fine.[/b]
This is perfectly working fine with command line as below code, but not working with .NET assembly
cd 'TestDir'
2022-01-06 23:29:15.380 CWD /'TestDir'
/
prepend with dir but when use .NET assembly /
prepends automatically with dir so remote directory not listing with .NET assembly.
Please kindly suggest me.