SFTPs attempt to check whether a target file is a directory throws Permission Denied Exception when the target file does not exist
Open
- Dominant language
- Java
- Stars
- 2.7k
- Forks
- 620
- Avg merge
- 3d 23h
- Merged PRs (30d)
- 11
Description
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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.