Skip to content

Conversation

@trgpa
Copy link

@trgpa trgpa commented Mar 26, 2021

  • Fix FilenameUtils.directoryContains. Add a file separator to the end of the parent directory to avoid treating files having the same prefix as subdirectories. directoryContains will return false when either parent or child is empty.
  • Explicitly state in the docs that the input paths are expected to be canonical.
  • Add a new test case for FilenameUtils.directoryContains.
  • Replace testIO466 with a new test case to demonstrate the bug (the current testIO466 will always pass because fooFile doesn't exist)

Jira: https://issues.apache.org/jira/browse/IO-727

@coveralls
Copy link

coveralls commented Mar 26, 2021

Coverage Status

Coverage increased (+0.05%) to 89.309% when pulling 8d4bb52 on trungPa:IO-727-directoryContains into c1ee777 on apache:master.

@trgpa trgpa force-pushed the IO-727-directoryContains branch from 089603e to 8d4bb52 Compare March 26, 2021 15:39
@garydgregory
Copy link
Member

@trungPa
May you please rebase on master? I see failures on Java 17 but the logs have expired.

@trgpa trgpa force-pushed the IO-727-directoryContains branch 2 times, most recently from 8d4bb52 to 1e8b502 Compare June 30, 2021 19:03
@garydgregory garydgregory changed the title IO-727: fix directoryContains() handling files with the same prefix IO-727: FilenameUtils directoryContains() should handle files with the same prefix Sep 3, 2021
asfgit pushed a commit that referenced this pull request Sep 3, 2021
same prefix #217.

Apply a modified PR #217 from trungPa to resolve conflicts.
@trgpa trgpa force-pushed the IO-727-directoryContains branch from 1e8b502 to 797e715 Compare September 3, 2021 19:22
@trgpa trgpa deleted the IO-727-directoryContains branch September 4, 2021 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants