[ 
https://issues.apache.org/jira/browse/IO-788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17718191#comment-17718191
 ] 

David Garratt edited comment on IO-788 at 5/1/23 10:25 AM:
-----------------------------------------------------------

If there some place I can find out which method are thread safe. For example 
FileUtils.listfiles

 

My test application is multi threaded.

 

Dave


was (Author: JIRAUSER287233):
If there some play I can find out which method are thread safe. For example 
FileUtils.listfiles

 

My test application is multi threaded.

 

Dave

> FileUtils.moveFile(File, File) can cause IOException in Windows.
> ----------------------------------------------------------------
>
>                 Key: IO-788
>                 URL: https://issues.apache.org/jira/browse/IO-788
>             Project: Commons IO
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 2.11.0
>         Environment: Windows
>            Reporter: Phu Dinh
>            Priority: Critical
>
> Hi,
> This report is spawn from a bug found in commons-fileupload:1.4 and up.
>  
> https://issues.apache.org/jira/browse/FILEUPLOAD-338
>  
> The code at this line:
> [https://github.com/apache/commons-io/blob/f22a4227401855ecbfdf8184bbe37275c3aeb5c3/src/main/java/org/apache/commons/io/FileUtils.java#L2392]
>  
> can cause IOException when the .tmp file is deleted during the writing the 
> upload file to disk.
> We found that the java process holding on to the open handler of the .tmp 
> file (during the read for writing to the destination file); thus the delete() 
> operation fails and the IOException is thrown.
>  
> This problem only happens on Windows.
>  
> Thanks,



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to