Unable to delete remote file with SFTP
Posted: Fri 02 Sep 2011 13:19
dear all
we encountered a problem when using SecureBridge 3.0 (the licensed version, not the demo version) with Delphi XE ond Windows 7 professional 64bit.
we tried to delete a remote file using the method TScSFTPClient.RemoveFile. If the file is located directly in the serverroot directory, deleting works. However, if the file is placed in a subdirectory (e.g. [SERVERROOT]/subdir/testfile.txt), we get a "EScSFTPError" exception with the message "SFTP server error occured: Permission denied".
the user has all permissions for the server root directory, the subdirectory and the file to be deleted.
by the way, we have the same problem with the method TScSFTPClient.DownloadFile
the same method call worked with Windows XP, SecureBridge 2.6 and Delphi 2006.
is this a known problem? can you give us any advice?
thanks steve
we encountered a problem when using SecureBridge 3.0 (the licensed version, not the demo version) with Delphi XE ond Windows 7 professional 64bit.
we tried to delete a remote file using the method TScSFTPClient.RemoveFile. If the file is located directly in the serverroot directory, deleting works. However, if the file is placed in a subdirectory (e.g. [SERVERROOT]/subdir/testfile.txt), we get a "EScSFTPError" exception with the message "SFTP server error occured: Permission denied".
the user has all permissions for the server root directory, the subdirectory and the file to be deleted.
by the way, we have the same problem with the method TScSFTPClient.DownloadFile
the same method call worked with Windows XP, SecureBridge 2.6 and Delphi 2006.
is this a known problem? can you give us any advice?
thanks steve