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

FileUtilsCleanDirectoryTestCase fails on Windoes if command chmod is available

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.1
    • 1.3.2
    • Utilities
    • None

    Description

      Some tests in FileUtilsCleanDirectoryTestCase try to delete files that have been set to read-only. This is expected to throw an exception. To set the read-only flag the method chmod() tries to execute the unix "chmod" command. If this fails (which should normally be the case on windows), the test is ignored.

      If Posix tools are available e.g. from Cygwin, MKS Toolkit, Microsoft's Posix Tools or similar ones the test fails.

      Attachments

        Activity

          People

            Unassigned Unassigned
            joehni Joerg Schaible
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: