def get_dir(self, file_path=None, view=None):
        file_path = file_path or self.get_file(view)
        if file_path:
            return os.path.dirname(file_path)
        return None
Returns a directory contains a file in a specified view if not a
dataset/ETHPy150Open spywhere/Javatar/core/state_property.py/_StateProperty.get_dir