mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-20 06:35:50 +02:00
[165891] windows remote part of the fix
This commit is contained in:
parent
237173d2de
commit
6633e7519b
1 changed files with 15 additions and 1 deletions
|
@ -358,7 +358,21 @@ public class UniversalFileSystemMiner extends Miner implements
|
||||||
+ " /S /E /K /O /Q /H /I"; //$NON-NLS-1$
|
+ " /S /E /K /O /Q /H /I"; //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
command = "copy " + source + " " + tgt; //$NON-NLS-1$ //$NON-NLS-2$
|
String unquotedTgt = tgt.substring(1, tgt.length() - 1);
|
||||||
|
|
||||||
|
File targetFile = new File(unquotedTgt);
|
||||||
|
if (!targetFile.exists())
|
||||||
|
{
|
||||||
|
// create file so as to avoid ambiguity
|
||||||
|
try
|
||||||
|
{
|
||||||
|
targetFile.createNewFile();
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
command = "xcopy " + source + " " + tgt + " /Y /K /O /Q /H"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue