I'm working on FTP client using .NET FtpWebRequest.
What I'm noticing that SOME servers instead of just file name - return full path to file like so:
-rw-rw-rw- 1 generic 235 Mar 22 11:21 fromDoder/DOD997ABCD.20170322112114159.1961812284.txt
Where I expect it to be:
-rw-rw-rw- 1 generic 235 Mar 22 11:21 DOD997ABCD.20170322112114159.1961812284.txt
Why does it happen? In my code I DO set directory in URL (to fromDoder
) and on most FTP servers it would return only file names. I'm just trying to understand what's a difference and how should I parse it