You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Syed Mudassir <sy...@gaiatv.in> on 2014/11/14 19:09:20 UTC
Setting FtpFile Permissions
Hello,
When I connect to an FTP server, I get access to a remote file
through FtpFile class.
I wanted to set POSIX file permissions on this file such as
rw-r--r--. I tried to use setPermission() of FtpFile. But to my
surprise, there is no change on the remote site.
I reverted to FtpClient.sendSiteCommand(). But I am afraid this
could be platform-dependent.
Whats the right way of setting permissions in platform-independent way?
--