From c0a89ce0a8f60a7f85b632781d66cc82e2a08266 Mon Sep 17 00:00:00 2001 From: David McKnight Date: Fri, 20 Jan 2012 19:11:12 +0000 Subject: [PATCH] [367424] [dstore] upload mechanism should provide backups of files -amending the backup filename scheme to be .~ since the backup files should be hidden by default. --- .../src/org/eclipse/dstore/core/model/ByteStreamHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rse/plugins/org.eclipse.dstore.core/src/org/eclipse/dstore/core/model/ByteStreamHandler.java b/rse/plugins/org.eclipse.dstore.core/src/org/eclipse/dstore/core/model/ByteStreamHandler.java index 61203c0f53f..06d22cb7336 100644 --- a/rse/plugins/org.eclipse.dstore.core/src/org/eclipse/dstore/core/model/ByteStreamHandler.java +++ b/rse/plugins/org.eclipse.dstore.core/src/org/eclipse/dstore/core/model/ByteStreamHandler.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2002, 2011 IBM Corporation and others. + * Copyright (c) 2002, 2012 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -93,7 +93,7 @@ public class ByteStreamHandler implements IByteStreamHandler String doBackups = System.getProperty("backupfiles"); //$NON-NLS-1$ if (doBackups == null || doBackups.equals("true")){ //$NON-NLS-1$ // backup the file first - file.renameTo(new File(fileName+"~")); //$NON-NLS-1$ + file.renameTo(new File('.'+fileName+"~")); //$NON-NLS-1$ } }