java实现移动文件夹代码,java文件夹代码,// This will
分享于 点击 39906 次 点评:42
java实现移动文件夹代码,java文件夹代码,// This will
// This will not move files across drives. // File (or directory) to be moved File file = new File("filename"); // Destination directory File dir = new File("directoryname"); // Move file to new directory boolean success = file.renameTo(new File(dir, file.getName())); if (!success) { // File was not successfully moved }//该片段来自于http://byrx.net
用户点评