comparison src/goodjava/lucene/backup/Backup.java @ 1501:e66e3d50b289

mkdirs
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 10 May 2020 22:28:13 -0600
parents f01abd6d5858
children 86c5e7000ecf
comparison
equal deleted inserted replaced
1500:f01abd6d5858 1501:e66e3d50b289
35 throw new RuntimeException(e); 35 throw new RuntimeException(e);
36 } 36 }
37 } 37 }
38 38
39 void handle2(RpcServer rpc,RpcCall call) throws IOException { 39 void handle2(RpcServer rpc,RpcCall call) throws IOException {
40 dir.mkdirs(); 40 IoUtils.mkdirs(dir);
41 //logger.info(call.cmd+" "+Arrays.asList(call.args)); 41 //logger.info(call.cmd+" "+Arrays.asList(call.args));
42 String fileName = null; 42 String fileName = null;
43 if( call.cmd.equals("check") ) { 43 if( call.cmd.equals("check") ) {
44 // nothing 44 // nothing
45 } else if( call.cmd.equals("add") || call.cmd.equals("append") ) { 45 } else if( call.cmd.equals("add") || call.cmd.equals("append") ) {