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

FileSystem.WINDOWS.isReservedFileName doesn't check for file extension

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.11.0
    • 2.12.0
    • Utilities
    • None
    • Java 8 (AdoptOpenjdk), tested on both linux (debian 10) and windows (2008 R2)

    Description

      FileSystem.WINDOWS.isReservedFileName() doesn't check file names without extension, for instance FileSystem.WINDOWS.isReservedFileName("COM1.txt") returns false but the creation of the latter file on a Windows platform will fail.

      Also the method should be case-insensitive, eg FileSystem.WINDOWS.isReservedFileName("com1") should return true

       

       

       

      Attachments

        Activity

          People

            ggregory Gary D. Gregory
            leonidas_chiron Leonidas Chiron
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: