Skip to content

Commit bd89d6b

Browse files
Will-ShaoHuarli
andauthored
Update plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/artifacts/LspUtils.kt
Co-authored-by: Richard Li <[email protected]>
1 parent 6205628 commit bd89d6b

File tree

1 file changed

+1
-0
lines changed
  • plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/artifacts

1 file changed

+1
-0
lines changed

plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/artifacts/LspUtils.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ fun getSubFolders(basePath: Path): List<Path> = try {
6969
fun moveFilesFromSourceToDestination(sourceDir: Path, targetDir: Path) {
7070
try {
7171
Files.createDirectories(targetDir.parent)
72+
// NIO move does not work when copying across mount points (i.e. /tmp is on tmpfs)
7273
FileUtils.moveDirectory(sourceDir.toFile(), targetDir.toFile())
7374
} catch (e: Exception) {
7475
throw IllegalStateException("Failed to move files from $sourceDir to $targetDir", e)

0 commit comments

Comments
 (0)