abchaubey commented on a change in pull request #179:
URL: https://github.com/apache/commons-io/pull/179#discussion_r550222159
##########
File path: src/main/java/org/apache/commons/io/FilenameUtils.java
##########
@@ -665,7 +665,10 @@ public static int getPrefixLength(final String fileName) {
if (ch1 == ':') {
ch0 = Character.toUpperCase(ch0);
if (ch0 >= 'A' && ch0 <= 'Z') {
- if (len == 2 || isSeparator(fileName.charAt(2)) == false) {
+ if (len == 2 &&
!FileSystem.getCurrent().supportsDriveLetter()) {
Review comment:
adding this in under Unix section :
* C: --> "" --> valid filename as only null
byte and / are reserved characters
Let me know your thoughts, thanks
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]