//package com.samsung.recommendation.post.dataupload.impl;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileWriter;
import java.io.RandomAccessFile;
import java.sql.DriverManager;
import java.sql.ResultSet;
//import java.*;
import java.sql.SQLException;
import java.util.ArrayList;
//import com.samsung.recommendation.dc.ExampleItemReader;
public class TestPPExistsFullDirectory {
//private ExampleItemReader reader = new ExampleItemReader();
public static void main(String[] args) throws FileNotFoundException{
int result = 1;
String filePathLoop = "d:/mydir";
File fileLoop;
fileLoop = new File(filePathLoop);
System.out.println("fileLoop.isDirectory() >>>" + fileLoop.isDirectory());
if (fileLoop.isDirectory()) { // 디렉토리면 ...
File subLoop[] = fileLoop.listFiles();
for(int b = 0 ; b < subLoop.length; b++){
System.out.println("dir list >>>"+subLoop[b].getPath());
}
}
System.exit(result);
}
}