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

Reply via email to