.dat ファイルと .zip ファイルがあるフォルダーがあり、.zip ファイルを別のディレクトリに移動する必要があります。
私は2つのフォルダを持っています。
1) c:\source folder --> having two files abc.dat and other is abc.zip
2) c:\destination ---> in which zip shpould be get copied
これを達成する方法をアドバイスしてください、私が今行った儀式は...
File directory = new File(sourceFolder);
File[] listFiles = (mcrpFilePath).listFiles();
for (File f : listFiles) {
if (f.isFile()) { // ?? here logic to pick up the zip file
//logic to move the zip file to other directory
}
}