Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 48574 invoked from network); 23 Aug 2007 12:27:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Aug 2007 12:27:01 -0000 Received: (qmail 10030 invoked by uid 500); 23 Aug 2007 12:26:55 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 9971 invoked by uid 500); 23 Aug 2007 12:26:55 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 9961 invoked by uid 99); 23 Aug 2007 12:26:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Aug 2007 05:26:54 -0700 X-ASF-Spam-Status: No, hits=4.5 required=10.0 tests=HELO_LOCALHOST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of david@davidkarlsen.com designates 217.13.8.30 as permitted sender) Received: from [217.13.8.30] (HELO localhost) (217.13.8.30) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Aug 2007 12:26:50 +0000 Received: from main.davidkarlsen.com (main.davidkarlsen.com [217.13.8.30]) by localhost (Postfix) with ESMTP id EB9772FBE3 for ; Thu, 23 Aug 2007 14:29:59 +0200 (CEST) Date: Thu, 23 Aug 2007 14:29:59 +0200 (CEST) From: "David J. M. Karlsen" To: user@commons.apache.org Subject: [transaction] move resource deletes the directory as well Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Checked: Checked by ClamAV on apache.org Hi list! I'm using fileResourceManager.moveResource( txId, inFilename, outFilename, false ); to move inFile to another directory as outfile ( eg in/filename.txt to out/filename.txt) under the same storeDir. The file is moved - but what puzzles me is that the directory "in" is removed. the file is correctly moved from in/filename.txt to out/filename.txt as it should. Bug? BTW: If I leave another file in the "in" directory the dir is not removed. David J. M. Karlsen - +47 90 68 22 43 http://www.davidkarlsen.com http://mp3.davidkarlsen.com --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org