Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 54908 invoked from network); 8 Mar 2011 02:15:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Mar 2011 02:15:23 -0000 Received: (qmail 24484 invoked by uid 500); 8 Mar 2011 02:15:23 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 24427 invoked by uid 500); 8 Mar 2011 02:15:23 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 24417 invoked by uid 99); 8 Mar 2011 02:15:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Mar 2011 02:15:23 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Mar 2011 02:15:21 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 84A3039CFC4 for ; Tue, 8 Mar 2011 02:14:59 +0000 (UTC) Date: Tue, 8 Mar 2011 02:14:59 +0000 (UTC) From: "Gil Adam (JIRA)" To: issues@commons.apache.org Message-ID: <1018439847.3452.1299550499539.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Created: (IO-263) FileSystemUtils.freeSpaceKb throws exception for Windows volumes with no visible files. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org FileSystemUtils.freeSpaceKb throws exception for Windows volumes with no visible files. --------------------------------------------------------------------------------------- Key: IO-263 URL: https://issues.apache.org/jira/browse/IO-263 Project: Commons IO Issue Type: Bug Components: Utilities Affects Versions: 2.0.1 Environment: Windows XP SP3 Reporter: Gil Adam Doing a FileSystemUtils.freeSpaceKb("D:/") where the drive (in this example d:\) is an empty drive (A drive with no non-hidden files on it yet) results in an exception being thrown. "Command line returned OS error code '1' for command [cmd.exe, /C, dir /-c "D:\"] Perhaps it could do a "dir /a /-c" to work in more cases? (Since hidden file "System Volume Information" will usually be available) -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira