sshj icon indicating copy to clipboard operation
sshj copied to clipboard

SFTPs attempt to check whether a target file is a directory throws Permission Denied Exception when the target file does not exist

Open RPCMoritz opened this issue 2 years ago • 0 comments

This could be due to the server side configuration, but ultimately a standard PUT via commandline works - once the files then exist, they can be checked, and the Exception goes away.

I would suggest to handle the Exception during the check, and defaulting to "If I can't tell whether it's a directory, it isn't one", with a warning log message, (SFTPFileTransfer:L292) or adding an explicit handler for Permission Denied.

RPCMoritz avatar Sep 14 '23 08:09 RPCMoritz