package util;

import java.io.File;

public class ShowFileList  {

 public static void main(String[] args) throws Exception {
   try {
           

     String dir = "D";//
             (new ShowFileList()).showFileList(dir);

         } catch (Exception ex) {
             ex.printStackTrace();
         }


 }
 
 public void showFileList(String path) throws Exception {
        File dir = new File(path);
        File[] files = dir.listFiles();

        for (int i = 0; i < files.length; i++) {
            File file = files[i];

            if (file.isFile()) {
             String strFileName = file.getCanonicalPath().toString().toLowerCase();
             if( strFileName.indexOf(".svn") == -1 &&  (strFileName.indexOf(".java") > -1  || strFileName.indexOf(".xml") > -1)   )
              System.out.println("[File]"+file.getCanonicalPath().toString().replace("\\", "/").replace(".java", ".class"));
              
            } else if (file.isDirectory()) {
               // System.out.println("[Directory]"+file.getCanonicalPath().toString());
                try {
                    showFileList(file.getCanonicalPath().toString());
                } catch (Exception e) {
                }
            }

        }
    }

 
 
 
}



겁나 귀여움
3단고 음 쩌내요 ㅎㅎ
아이쿸 하나 둘~아임인마드뤼~이이이이이이이이이이이이이이익에에ㅞㄱ[ㅇ[ㄱ아아으아아아~ 이러케 조흔날 하아 흙흙흞
노량진 수산시장 대하

내가 먹어본 대하중에 잴잘구운대하 전문가가 구운낌 ㅎㅎ

iPhone 에서 작성된 글입니다.