def is_directory(self, path):
        return self._getReturnCodeCmd([self._hadoop_cmd, 'fs', '-test', '-d', self._full_hdfs_path(path)]) == 0
Return True if <path> is a directory, False if it's NOT a directory
dataset/ETHPy150Open spotify/snakebite/snakebite/minicluster.py/MiniCluster.is_directory