[ https://issues.apache.org/jira/browse/IO-870?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17937546#comment-17937546 ]
David Smiley commented on IO-870: --------------------------------- I validated it. Indeed I see a similar issue in that other [method|https://github.com/apache/commons-io/blob/0d41d2fd958f28a0c4eb21afb6f34be8efa0e4fb/src/main/java/org/apache/commons/io/file/PathUtils.java#L669] > PathUtils.copyFileToDirectory doesn't work across FileSystem > ------------------------------------------------------------ > > Key: IO-870 > URL: https://issues.apache.org/jira/browse/IO-870 > Project: Commons IO > Issue Type: Improvement > Components: Utilities > Affects Versions: 2.15.1 > Reporter: David Smiley > Priority: Minor > Fix For: 2.19.0 > > > 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 message was sent by Atlassian Jira (v8.20.10#820010)