Skip to content

StringUtils.getFilename(String) should parse any kind of file separator [SPR-5284] #9957

@spring-projects-issues

Description

@spring-projects-issues

Kengkaj S. opened SPR-5284 and commented

Currently, StringUtils.getFilename(String) code is
[code]path.lastIndexOf(FOLDER_SEPARATOR);[/code]
which FOLDER_SEPARATOR is "/", so it doesn't work with Windows file separator.


Affects: 2.5.6

Issue Links:

Metadata

Metadata

Assignees

Labels

status: declinedA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions