mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-17 21:43:33 +07:00
do not copy relative to empty path
This commit is contained in:
@@ -254,7 +254,7 @@ public class CopyClassesHandler implements CopyHandlerDelegate {
|
||||
|
||||
private static PsiFile copy(PsiFile file, PsiDirectory directory, String name, String relativePath) {
|
||||
final String fileName = name != null ? (name + "." + file.getViewProvider().getVirtualFile().getExtension()) : file.getName();
|
||||
if (relativePath != null) {
|
||||
if (relativePath != null && !relativePath.isEmpty()) {
|
||||
return buildRelativeDir(directory, relativePath).findOrCreateTargetDirectory().copyFileFrom(fileName, file);
|
||||
}
|
||||
return directory.copyFileFrom(fileName, file);
|
||||
|
||||
Reference in New Issue
Block a user