| 
					
				 | 
			
			
				@@ -62,7 +62,19 @@ public class TestPlugin  extends AbstractListPlugin { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (nckd_url.equals("/var/appstatic/")) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             nckd_url="/home/kingdee/cosmic/nginx-appstatic/store/appstatic/"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //文件完整路径 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         String realPath = nckd_url+datestr+"/"+nckd_filename; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        File file=new File(realPath); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //文件不存在则生成文件 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (!file.exists()) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            File parentDir = file.getParentFile(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (parentDir != null && !parentDir.exists()) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                parentDir.mkdirs(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            file.createNewFile(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.getView().showMessage(nckd_url+datestr+"路径下成功生成文件"+nckd_filename); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return realPath; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |