Return-Path: Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 14474 invoked from network); 26 Aug 2003 06:10:20 -0000 Received: from unknown (HELO mail.savarese.org) (64.78.109.210) by daedalus.apache.org with SMTP; 26 Aug 2003 06:10:20 -0000 Received: from yoda.savarese.org (yoda.savarese.org [192.168.1.4]) by mail.savarese.org (8.12.8/8.12.8) with ESMTP id h7Q6Adju031696 for ; Tue, 26 Aug 2003 02:10:39 -0400 Received: from savarese.org by yoda.savarese.org (8.12.8/8.12.8/Submit) with ESMTP id h7Q6AdHC007107 for ; Tue, 26 Aug 2003 02:10:39 -0400 Message-Id: <200308260610.h7Q6AdHC007107@yoda.savarese.org> X-Mailer: exmh version 2.5 10/15/1999 with nmh-1.0.4 To: commons-user@jakarta.apache.org Subject: Re: determining remote file write permission with FTPClient In-reply-to: Your message of "Wed, 20 Aug 2003 16:34:08 BST." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 26 Aug 2003 02:10:38 -0400 From: "Daniel F. Savarese" X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N In message , "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