package org.tizen.emulator.manager.vms.helper;
import java.io.File;
-import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
Path target = makeBackupFilePath(source);
try {
- Files.copy(source, target, StandardCopyOption.REPLACE_EXISTING);
- } catch (IOException e) {
- EMLogger.getLogger().warning("Failed to make back log." ); //$NON-NLS-1$
+ Files.move(source, target, StandardCopyOption.REPLACE_EXISTING);
+ } catch (Exception e) {
+ EMLogger.getLogger().warning("Failed to make back log. " //$NON-NLS-1$
+ + e.getClass().getName() +", "
+ + e.getMessage());
}
}