FTP: Check for write permission only in folder I am uploading to, not in the root path
The root path in the server settings (SFTP) in my site definition in DW is "/var/www/". I am not allowed to write directly into that directory. But I can write into "htdocs" ("/var/www/htdocs/"). The local site root is "C:\wamp64\www\example.com\". On the local side all my files are also in "htdocs" ("C:\wamp64\www\example.com\htdocs\") and I only upload/sync those files.
DW obviously checks for permission in "/var/www/" (via a file called "temp2342.htm") and because I do not have permission, DW does not sync anything (it just says there are no files to sync, which is not true).
So my idea is that DW should only check for permission in folders I'm actually writing to.
If you ask why I do not set the htdocs folder as root path for FTP: it's complicated. ;)