[
https://issues.apache.org/jira/browse/IO-552?focusedWorklogId=840266&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-840266
]
ASF GitHub Bot logged work on IO-552:
-------------------------------------
Author: ASF GitHub Bot
Created on: 19/Jan/23 12:26
Start Date: 19/Jan/23 12:26
Worklog Time Spent: 10m
Work Description: garydgregory commented on PR #297:
URL: https://github.com/apache/commons-io/pull/297#issuecomment-1396901440
I am still -1 on this one because `~` is only a Unix-like shells and `~.txt`
is a legal file name on Windows 10. So I will close this PR.
Issue Time Tracking
-------------------
Worklog Id: (was: 840266)
Time Spent: 2.5h (was: 2h 20m)
> FilenameUtils.concat fails if second argument (fullFilenameToAdd) starts with
> '~' (tilde)
> -----------------------------------------------------------------------------------------
>
> Key: IO-552
> URL: https://issues.apache.org/jira/browse/IO-552
> Project: Commons IO
> Issue Type: Bug
> Components: Utilities
> Affects Versions: 2.2, 2.5
> Environment: Windows 7 64bit, JavaVM 1.8 32bit
> Reporter: Jochen Tümmers
> Priority: Critical
> Time Spent: 2.5h
> Remaining Estimate: 0h
>
> {{FilenameUtils.concat("c:/temp", "~abc.txt") returns "~abc.txt/" instead of
> "c:/temp/~abc.txt".}}
> As a result, the file would be created in the user's home directory instead
> of c:/temp.
> (Note: I Had to replace all instances of double backslashes that would
> normally appear in the java code with forward slashes as the editor cannot
> handle backslashes properly.)
> commons io 2.2. and 2.5 behave the same. 2.3 and 2.4 not tested.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)