Norns fates - data_dir is nil

I am working through the norns studies, right now number 5 where file operations are an issue. It says there:

… inside the folder data_dir (which is a global for /home/we/dust/data/) …

but the following code from the study 5 …

listing = util.scandir(home_dir.."dust")
tab.print(listing)

… tells me that home_dir is nil:

/home/we/dust/code/studies/study-5.lua:14: 
attempt to concatenate a nil value (global 'home_dir')
[...]

I am on fates 200328 (if that matters). What am I missing? I’d appreciate any hint.

Looks like those globals have changed since the study was written

See https://github.com/monome/norns/blob/master/lua/core/config.lua

_path.home or _path.dust is probably what you want

2 Likes

logged an issue, thanks for the eyes!

3 Likes