code: def is_directory(self, path):
          
          return self._getReturnCodeCmd([self._hadoop_cmd, 'fs', '-test', '-d', self._full_hdfs_path(path)]) == 0
docs: Return True if <path> is a directory, False if it's NOT a directory