commons-io icon indicating copy to clipboard operation
commons-io copied to clipboard

Amend getFullPathNoEndSeparator description for trailing slash home path behaviour

Open Philzen opened this issue 1 year ago • 1 comments

The description says it will remove the trailing slash from a home path (relative path starting with tilde).

A simple

        @Test void returnsHomeWithTrailingSlash_forHomeWithTrailingSlash() {
            assertThat(FilenameUtils.getFullPathNoEndSeparator("~/")).isEqualTo("~/");
        }

proves otherwise.

This fixes the description accordingly. NB: this behaviour has been existent since 2.4, where i discovered it.

Philzen avatar Jan 04 '24 10:01 Philzen

Any objections merging this?

Philzen avatar Apr 24 '24 13:04 Philzen