You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by "Daniel F. Savarese" <df...@savarese.org> on 2003/08/26 08:10:38 UTC

Re: determining remote file write permission with FTPClient

In message <AF...@capetechnologies.com>, "Da
niel Bray (CAPE)" writes:
>I'm using org.apache.commons.net.ftp.* and I was wondering if there's any
>way to determine if I have write access to a remote file without writing to
>it first?

See 
http://jakarta.apache.org/commons/net/apidocs/org/apache/commons/net/ftp/FTPFile.html

You can determine the permissions associated with a file as well as the
user and group ownership, from which you should be able to derive what
you need.

daniel