Explorar el Código

[hadoop] Implement missing isroot method into WebHdfs

Romain Rigaux hace 10 años
padre
commit
9fe3054
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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):