You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "J.P. (JIRA)" <ji...@apache.org> on 2017/07/13 18:13:00 UTC
[jira] [Created] (IO-545) FilenameUtils.getFullPath incorrectly
parses file names that begin with a tilde
J.P. created IO-545:
-----------------------
Summary: FilenameUtils.getFullPath incorrectly parses file names that begin with a tilde
Key: IO-545
URL: https://issues.apache.org/jira/browse/IO-545
Project: Commons IO
Issue Type: Bug
Components: Utilities
Affects Versions: 2.5, 2.4
Environment: OpenJDK Runtime Environment (build 1.8.0_92-b14)
FreeBSD 10.0-RELEASE-p11
Reporter: J.P.
Priority: Minor
For any file with a name that begins with a tilde, which is a valid file name in BSD and Windows, if you call FilenameUtils.getFullPath and pass the file name, it returns the file name followed by a path separator. It should return an empty string. It seems to be parsing it as a unix user directory because it starts with the tilde.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)