Changes between Version 3 and Version 4 of NCHCCloudCourse100928_3_EXE3


Ignore:
Timestamp:
Jul 21, 2011, 11:33:15 AM (13 years ago)
Author:
waue
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NCHCCloudCourse100928_3_EXE3

    v3 v4  
    3333                        FileSystem hdfs = dst_path.getFileSystem(conf);
    3434                        // 檢查是否存在
    35                         if (hdfs.exists(dst_path)) {
     35                        if (hdfs.exists()) {
    3636                                // 有則刪除
    37                                 hdfs.delete(dst_path, true);
     37                                hdfs.delete();
    3838                                return true;
    3939                        }else{