Posted on 2009/03/28 16:23 | CodeIN/Java



흠... File.separator 처럼 만들어주는 메소드이다.

가끔 어떤 플랫폼에서 file path를 가져오면은 제대로 작동하지 않는 경우가 있는데..

그냥 이렇게 해서 사용한다.

 

 private static String changeDivision(String filePath){
//        System.out.println("----------------------------------------------changeDivision");
        String ret = "";
//        System.out.println("filePath : " + filePath);
        ret = filePath.replaceAll("
\\\\", "/");
//        System.out.println("ret : " + ret);
        return ret;
    }

 

 

 

 

 

 

 
트랙백 주소 :: http://www.voiceportal.co.kr/572/trackback/
profile image

To be able to do what you want is the freedom, to enjoy what you do is the happiness.

옵션
댓글 달기

블로그 이미지
Blog Image
김태정, All on Voiceportal

Voice portal에 대한 정보 공유.

by 김태정
프로필 버튼
프로필 상세보기
블로그롤 정보

Calendar*
«   2010/03   »
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

Comment*
Counter*
Total
554903
Today
268
Yesterday
1203