[
https://issues.apache.org/jira/browse/IO-748?focusedWorklogId=650117&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-650117
]
ASF GitHub Bot logged work on IO-748:
-------------------------------------
Author: ASF GitHub Bot
Created on: 13/Sep/21 16:33
Start Date: 13/Sep/21 16:33
Worklog Time Spent: 10m
Work Description: garydgregory commented on pull request #270:
URL: https://github.com/apache/commons-io/pull/270#issuecomment-918369037
This patch is incomplete because it does not take into account all callers
of `validateMoveParameters(File, File)`. Closing this PR in favor of a better
patch in git master.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 650117)
Time Spent: 40m (was: 0.5h)
> FileUtils.moveToDirectory() exception documentation and exception message
> error
> -------------------------------------------------------------------------------
>
> Key: IO-748
> URL: https://issues.apache.org/jira/browse/IO-748
> Project: Commons IO
> Issue Type: Bug
> Components: Utilities
> Affects Versions: 2.11.0
> Reporter: Dirk Heinrichs
> Priority: Major
> Fix For: 2.12.0
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> When executing
> {code:java}
> FileUtils.moveToDirectory(new File('foobarbaz'), new File('/tmp'),
> false){code}
> while "foobarbaz" doesn't exist, I get
> {code:java}
> java.io.FileNotFoundException: Source 'foobarbaz' does not exist {code}
> but the documentation doesn't mention "FileNotFoundException".
> OTOH, if "foobarbaz" exists both as source and in the destination directory,
> I get
> {code:java}
> org.apache.commons.io.FileExistsException: File element in parameter 'null'
> already exists: '/tmp/foobarbaz'
> {code}
> What's that "parameter 'null'"?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)