Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-263

FileSystemUtils.freeSpaceKb throws exception for Windows volumes with no visible files.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.1
    • 2.1
    • Utilities
    • None
    • Windows XP SP3

    Description

      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)

      Attachments

        Activity

          People

            Unassigned Unassigned
            giladam Gil Adam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: