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

Add reserved Windows file names CONIN$ and CONOUT$ to FileSystem

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.11.0
    • 2.12.0
    • None
    • None

    Description

      The file names CONIN$ and CONOUT$ are also reserved on Windows, see https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilea#consoles.
      Example code:

      jshell> Files.readString(Path.of("CONIN$"))
      |  Exception java.io.IOException: Incorrect function
      ...
      

      It would be good to add them to org.apache.commons.io.FileSystem.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Marcono1234 Marcono1234
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h