1 2 3 4 5 6 7 8 9 10
| public class TestHttpClient { @Test public void test(){ File source = new File("/data/source.txt"); File target = new File("/data/target/source.txt"); if(source.exists()){ source.renameTo(target); } } }
|
本文地址: https://github.com/maxzhao-it/blog/post/2b68cbc2/