Closed jamoros closed 2 years ago
That is what the stat method is for. It returns the attributes of the file so you can check its type or the isDirectory method of SftpFileAttributes.
Thank you for your response, I will be trying that in my implementation this week.
I'm using the
ls
command in theSftpClientTask
but I get an exception that it is not a directory. Which is fine, as I was currently checking if its a file or not. What is the alternative to check for a file if it exists?Thank you!!