From 86db77dd5ca770aa052bbedc3f5ae9ef60adcdc4 Mon Sep 17 00:00:00 2001 From: chenlw <874313221@qq.com> Date: Thu, 29 Sep 2016 16:33:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=81=E7=A7=BB=E5=90=8E=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E8=B5=8B=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/com/platform/glusterfs/CopyData.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/platform/glusterfs/CopyData.java b/src/com/platform/glusterfs/CopyData.java index 0b226c77..86a0501c 100644 --- a/src/com/platform/glusterfs/CopyData.java +++ b/src/com/platform/glusterfs/CopyData.java @@ -92,7 +92,7 @@ public class CopyData { log.info("3202 "+sourceFolderName+"/"+fileName+" is not exists"); return -2; } - String command = "cp -r " + sourceFolderName + "/" + fileName+" "+destFolderName; + String command = "cp -rp " + sourceFolderName + "/" + fileName+" "+destFolderName; /* * RunCommand runCommand = new RunCommand();