[
https://issues.apache.org/jira/browse/IO-762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17488858#comment-17488858
]
Gary D. Gregory commented on IO-762:
------------------------------------
[~leonidas_chiron]
Thank you for your report. Feel free to provide a PR on GitHub with tests.
> 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
> Priority: Minor
>
> 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)