Use an empty file to retain a dir in git + handle listdir returning files.