Leonidas Chiron created IO-762:
----------------------------------
Summary: FileSystem.WINDOWS.isReservedFileName doesn't check for
file extension
Key: IO-762
URL: https://issues.apache.org/jira/browse/IO-762
Project: Commons IO
Issue Type: Bug
Components: Utilities
Affects Versions: 2.11.0
Environment: Java 8 (AdoptOpenjdk), tested on both linux (debian 10)
and windows (2008 R2)
Reporter: Leonidas Chiron
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
--
This message was sent by Atlassian Jira
(v8.20.1#820001)