mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2026-01-31 04:40:54 +01:00
JBR-7700 Fix the case with deletion of locked file on Windows
This commit is contained in:
committed by
Vitaly Provodin
parent
02d183c67a
commit
cd9cb3ad38
@@ -41,6 +41,7 @@ import java.nio.file.FileSystems;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.InvalidPathException;
|
||||
import java.nio.file.LinkOption;
|
||||
import java.nio.file.OpenOption;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.StandardCopyOption;
|
||||
import java.nio.file.StandardOpenOption;
|
||||
@@ -269,7 +270,7 @@ class IoOverNioFileSystem extends FileSystem {
|
||||
java.nio.file.FileSystem nioFs,
|
||||
File file,
|
||||
Path nioPath,
|
||||
Set<StandardOpenOption> optionsForChannel,
|
||||
Set<OpenOption> optionsForChannel,
|
||||
NioChannelCleanable channelCleanable) throws FileNotFoundException {
|
||||
try {
|
||||
// This tricky thread local variable allows specifying an argument for sun.nio.ch.FileChannelImpl.<init>
|
||||
@@ -286,7 +287,7 @@ class IoOverNioFileSystem extends FileSystem {
|
||||
java.nio.file.FileSystem nioFs,
|
||||
File file,
|
||||
Path nioPath,
|
||||
Set<StandardOpenOption> optionsForChannel,
|
||||
Set<OpenOption> optionsForChannel,
|
||||
NioChannelCleanable channelCleanable) throws FileNotFoundException {
|
||||
FileChannel channel = null;
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user