ettienne328
Programmer
Hi.
I am trying to do a fsetstat on a file using sftp:
fileAttributes = sftpClient.fstat(fileHandle);
fileAttributes.permissions = new Integer(00777);
sftpClient.fsetstat(fileHandle, fileAttributes);
The files permission gets changed as requested on the server but an exception gets thrown, I can’t figure out why the exception is thrown :SSH_FX_FAILURE: An error occurred, but no specific error code exists to describe the failure.
I am able to do createFile which indicates that my connection and file handle is working...
Also the file gets created by the process and therefor I have all the neccesary permission to make changes to the file.
Thanks
I am trying to do a fsetstat on a file using sftp:
fileAttributes = sftpClient.fstat(fileHandle);
fileAttributes.permissions = new Integer(00777);
sftpClient.fsetstat(fileHandle, fileAttributes);
The files permission gets changed as requested on the server but an exception gets thrown, I can’t figure out why the exception is thrown :SSH_FX_FAILURE: An error occurred, but no specific error code exists to describe the failure.
I am able to do createFile which indicates that my connection and file handle is working...
Also the file gets created by the process and therefor I have all the neccesary permission to make changes to the file.
Thanks