Commons IO
  1. Commons IO
  2. IO-115

FileUtilsCleanDirectoryTestCase fails on Windoes if command chmod is available

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.1
    • Fix Version/s: 1.3.2
    • Component/s: Utilities
    • Labels:
      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.

        Activity

        Joerg Schaible created issue -
        Henri Yandell made changes -
        Field Original Value New Value
        Fix Version/s 1.3.1 [ 12312301 ]
        Fix Version/s 1.4 [ 12312101 ]
        Jochen Wiedmann made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Niall Pemberton made changes -
        Fix Version/s 1.4 [ 12312101 ]
        Fix Version/s 1.3.2 [ 12312510 ]
        Henri Yandell made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mark Thomas made changes -
        Workflow jira [ 12397670 ] Default workflow, editable Closed status [ 12601920 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Joerg Schaible
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development