You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "dsmiley (via GitHub)" <gi...@apache.org> on 2025/03/20 01:43:19 UTC
[PR] IO-870: PathUtils.copyFileToDirectory [commons-io]
dsmiley opened a new pull request, #728:
URL: https://github.com/apache/commons-io/pull/728
span FileSystem.
https://issues.apache.org/jira/browse/IO-870
> PathUtils.copyFileToDirectory is a simple method calling Files.copy, the latter of which supports cross-FileSystem copy. But copyFileToDirectory gets the file name from the source as a Path and then resolves this against the target, which is invalid. It needs to get the string form of the source file name.
This problem was encountered in Apache Solr which uses Apache Lucene's extensive test infrastructure, including custom FileSystem impls that emulate various behaviors to help tests see things that some users might experience.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IO-870: PathUtils.copyFileToDirectory [commons-io]
Posted by "garydgregory (via GitHub)" <gi...@apache.org>.
garydgregory merged PR #728:
URL: https://github.com/apache/commons-io/pull/728
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IO-870: PathUtils.copyFileToDirectory [commons-io]
Posted by "dsmiley (via GitHub)" <gi...@apache.org>.
dsmiley commented on PR #728:
URL: https://github.com/apache/commons-io/pull/728#issuecomment-2739106962
I didn't run "mvn" but otherwise I believe I'm compliant with this projects many rules. If there's still a problem after the tests pass but I haven't done something specifically, just let me know (which).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IO-870: PathUtils.copyFileToDirectory [commons-io]
Posted by "dsmiley (via GitHub)" <gi...@apache.org>.
dsmiley commented on PR #728:
URL: https://github.com/apache/commons-io/pull/728#issuecomment-2740476566
At first I thought "test" phase might be enough (I pushed) -- it wasn't. Then "verify" (I pushed) -- but apparently not! The project should hookup "spotbugs" to verify. It ran when I used "mvn" alone.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IO-870: PathUtils.copyFileToDirectory [commons-io]
Posted by "garydgregory (via GitHub)" <gi...@apache.org>.
garydgregory commented on PR #728:
URL: https://github.com/apache/commons-io/pull/728#issuecomment-2740224949
Hello @dsmiley
The builds are still red. Run `mvn`; that's `mvn` on the command line, by itself. There is no sense in pushing broken commits if your build fails locally.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IO-870: PathUtils.copyFileToDirectory [commons-io]
Posted by "dsmiley (via GitHub)" <gi...@apache.org>.
dsmiley commented on PR #728:
URL: https://github.com/apache/commons-io/pull/728#issuecomment-2738826361
I might actually be able to test this using Zip FileSystem from a JAR to copy to a temp dir (standard/default FileSystem). Could just use a dependency's JAR. Hmmm.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IO-870: PathUtils.copyFileToDirectory [commons-io]
Posted by "garydgregory (via GitHub)" <gi...@apache.org>.
garydgregory commented on PR #728:
URL: https://github.com/apache/commons-io/pull/728#issuecomment-2738952197
@dsmiley
You did not follow the PR template:
Before you push a pull request, review this list:
- [ ] Read the [contribution guidelines](CONTRIBUTING.md) for this project.
- [ ] Run a successful build using the default [Maven](https://maven.apache.org/) goal with `mvn`; that's `mvn` on the command line by itself.
- [ ] Write unit tests that match behavioral changes, where the tests fail if the changes to the runtime are not applied. This may not always be possible but is a best-practice.
- [ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
- [ ] Each commit in the pull request should have a meaningful subject line and body. Note that commits might be squashed by a maintainer on merge.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org