소스 검색

[hadoop] Implement missing isroot method into WebHdfs

Romain Rigaux 10 년 전
부모
커밋
9fe3054
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      desktop/libs/hadoop/src/hadoop/fs/webhdfs.py

+ 3 - 0
desktop/libs/hadoop/src/hadoop/fs/webhdfs.py

@@ -253,6 +253,9 @@ class WebHdfs(Hdfs):
       return False
     return not sb.isDir
 
+  def isroot(self, path):
+    return path == '/'
+
   def _ensure_current_trash_directory(self):
     """Create trash directory for a user if it doesn't exist."""
     if self.exists(self.current_trash_path):